< 1 2 3 4 5 > >>   Sort: Rank

Two Types of "import" Statements
This section describes two types of 'import' statements: Single Type Import and On-Demand Type Import. 4 sample Java source files are provided to test 'import' statements.
2020-02-06, 1554👍, 2💬

💬 2020-02-06 Herong: Abuja, “wildcard” import is called on-demand import.

💬 2020-02-02 Abina: there are two type of import 1.specific 2.wildcard the Specific is select and import one from API the second wildcard select all...

HttpsHello.java - HTTPS Server Test Program
This section provides a tutorial example on how to write a HTTPS server test program, HttpsHello.java. It writes back a simple Web page using the HTTPS protocol.
2020-01-28, 13136👍, 25💬

💬 2020-01-28 Herong: Bing, see Generating Private Keystutorial on how to creat JKS files.

💬 2020-01-24 BingLi224: how to create .jks certificate file correctly?

💬 2017-09-20 Herong: Sandeep, you need to create a server certificate in a .jks file first.

💬 2017-09-08 sandeep kumar shukla: I am getting following error while I run the servier program. java.io.FileNotFoundException: herong.jks (The system cannot find ...

💬 2016-09-21 Test: Hello. How are you?

(More comments ...)

main() Method - Java Execution Entry Point
This section describes the Java program entry point, the main() method of the starting class. Command line arguments are passed as an string array parameter to the main() method.
2020-01-21, 971👍, 2💬

💬 2020-01-21 samso: Thanks for this wonderful blog that you have designed in this page. Very informative and effective article. Ver inspired article...

Printable Copy - PDF Version
Information on how to obtain the PDF version of this book for printing.
2019-12-05, 2637👍, 10💬

💬 2019-12-05 Mpono: Thanks a lot

💬 2018-06-09 Herong: Sake, I think you can create a good MP3 Player with Java Swing.

💬 2018-06-02 sake: It can make advanced mp3Player whith java swing?

💬 2018-05-12 george: java

💬 2016-03-22 Herong: Keval, I will try my best. ☺

(More comments ...)

getBit() - Retrieving a Bit from a Byte Array
This section provides a tutorial example on how to get one bit back from a byte array at a specific bit position - getBit().
2019-11-14, 10194👍, 2💬

💬 2016-07-10 bfssd: Meaningful comments

Downloading and Installing Java DB (Derby)
This section describes how to download and install Java DB (Derby database server) 10.11 - free for evaluation.
2019-10-22, 12533👍, 12💬

💬 2019-10-22 mahdi: very good

💬 2019-06-17 Thet: Thanks

💬 2019-01-25 denzel mana-ay: putangina mo wala akong makita

💬 2018-05-10 Anonomyus: tanks

💬 2016-02-19 Ali: Good App

(More comments ...)

Java 8 GC Tutorials - Herong's Tutorial Examples
This book is a collection of tutorial notes and sample codes written by the author while he was learning JVM GC (Garbage Collection) processes. Topics include Java Garbage Collectors, STW (Stop-The-World), Serial Collector, Parallel Collector, Concurrent Collector, G1 Collector, GC Algorithms, Gener...
2019-09-07, 614👍, 1💬

💬 2019-09-07 Venmo: Very helpful. Thanks!

Downloading and Installing JDK 10
This section describes how to download and install JDK 10 on a Windows system.
2019-06-17, 60252👍, 50💬

💬 2019-06-12 sothea: Java is good

💬 2019-05-13 Myo Nyein: don't know

💬 2019-05-13 Myo Nyein: good

💬 2018-12-23 Thin Ga Ha: Very good

💬 2018-10-22 Chirag: Very good

(More comments ...)

"java --list-modules" - Listing Modules in JDK
This section provides a tutorial example on how to use 'java --list-modules' command to list all modules included in the JDK installation.
2019-06-01, 4288👍, 4💬

💬 2019-06-01 Herong: Klaus, it's probably getting them from the C:\Program Files\Java\jdk-10.0.1\lib\modules file. But you can also see a list of mod...

💬 2019-05-24 Klaus: Hi, where does this command get the modules? What is the file they lie in? I'm using CentOS

💬 2019-02-19 Herong: Felix, Thanks for pointing out the typo! It will corrected in the next update.

💬 2019-02-14 felix lee: The line "C:\herong>javac --list-modules" should be "C:\herong>java --list-modules". s/javac/java/

Java GC Tutorials - Herong's Tutorial Examples
This book is a collection of tutorial notes and sample codes written by the author while he was learning JVM GC (Garbage Collection) processes. Topics include Java Garbage Collectors, STW (Stop-The-World), Serial Collector, Parallel Collector, Concurrent Collector, G1 Collector, GC Algorithms, Gener...
2019-01-01, 3098👍, 1💬

💬 2018-06-17 Jack: It's helpful!

Literal Formats for Integers - Example
This section provides a tutorial example on how to use integer literals in 4 formats: decimal, hex, octal and binary.
2018-10-02, 109👍, 1💬

'jstat -gcutil' - Garbage Collection Statistics
This section provides a tutorial example on how to use the 'jstat -gcutil' command to get garbage collection statistics against a specified JVM process ID.
2018-09-22, 1610👍, 2💬

💬 2018-09-22 Herong: Jagan, "jstat" is for Windows system only. You need to use vmstat or iostat on Oracle Solaris or Linux operating system.

💬 2018-09-22 jagan: cd /usr/java/jdk1.8.0_172/bin/j jar jarsigner java javac java-rmi.cgi jcmd jdeps jjs jps jrunscript jstat is not there.. what we...

Downloading and Installing JDK 1.6.2 on Windows
This section provides a tutorial example on how to download and install JDK 1.6.2 (Java SE 1.6 Update 2) on a Windows XP system. A simple Java program was entered, compiled, and executed with the new JDK installation.
2018-08-11, 9670👍, 15💬

💬 2018-08-11 mikw: thanks

💬 2017-02-27 sireesha: thanks

💬 2017-02-27 sireesha: Hi, I am admire to this site

💬 2017-01-29 hiiii: hi

💬 2016-10-17 Abhishek: Thanks

(More comments ...)

java.util.Locale - Localization and Internationalization
This section provides a tutorial example on how to use java.util.Locale class to verify the default locale and list all supported locales. A locale is an identification of a combination of human language and country.
2018-08-01, 7398👍, 4💬

💬 2016-12-25 Herong: jfseb, thanks for pointing out this difference.

💬 2016-12-19 jfseb: Note that java locales do not correspond in all versions to ISO 639. e.g. hebrew is now he, not iw. https://en.wikipedia.org/wik...

💬 2016-05-06 Scrijna: P.S. It's also useful for Java, iOS and Windows localization, as it supports most popular localization formats.

💬 2016-05-06 Scrijna: For Android app localization, you could try using the localization tool https://poeditor.com It's useful for collaborative trans...

Garbage Collection Logging Options
This section describes HotSpot JVM options to generate garbage collection log messages. '-XX:+PrintGCDetails' and '-XX:+PrintGCDateStamps' are two most important options.
2018-06-24, 979👍, 1💬

💬 2018-06-24 Tina: This is useful.

💬 2018-04-23 Don: Thanks for the detailed explanation!

Garbage Collection Logging Options
This section describes HotSpot JVM options to generate garbage collection log messages. '-XX:+PrintGCDetails' and '-XX:+PrintGCDateStamps' are two most important options.
2018-06-24, 979👍, 1💬

💬 2018-06-24 Tina: This is useful.

💬 2018-04-23 Don: Thanks for the detailed explanation!

Java Exception: "java.lang.OutOfMemoryError: Java heap space"
This section provides a tutorial example on how JVM expands the Heap space to allocate more objects and leads to the 'java.lang.OutOfMemoryError: Java heap space' Java exception, if it is not allowed to expand any more.
2018-06-24, 523👍, 1💬

💬 2018-06-24 Maria: Cool!

💬 2017-08-10 xionghongzhi: awsome artical!!!!!! thx!!!

Java Exception: "java.lang.OutOfMemoryError: Java heap space"
This section provides a tutorial example on how JVM expands the Heap space to allocate more objects and leads to the 'java.lang.OutOfMemoryError: Java heap space' Java exception, if it is not allowed to expand any more.
2018-06-24, 523👍, 1💬

💬 2018-06-24 Maria: Cool!

💬 2017-08-10 xionghongzhi: awsome artical!!!!!! thx!!!

System.setProperty() - Setting Your Own Properties
This section provides a tutorial example on how to modify system properties provided by the JVM, and set your own properties into the system property map.
2018-05-15, 206👍, 2💬

Using WSDL2Java to Generate Web Service Stub Classes
This chapter provides tutorial notes and example codes on WSDL2Java. Topics include using the WSDL2Java tool included in Axis2 1.4.1; generating client side stub classes; using stub and data type classes; testing stub classes with XML document and RPC method based Web services.
2018-04-22, 14065👍, 9💬

💬 2018-04-22 test name: thanks

💬 2017-01-20 Stephen: Hi , thanks for this tutorial

💬 2016-02-24 Herong: NfeDownloadNFStub, do you need any help on your WSDL document?

💬 2016-02-23 NfeDownloadNFStub: &lt;?xml version="1.0" encoding="UTF-8"?> &lt;wsdl:definitions xmlns:s="http://www.w3.org/2001/XMLS chema"xmlns:soap12="...

💬 2015-12-18 prem: thanks

java.time.Duration - Time Durations
This section describes the java.time.Duration class that represents a duration of time measured in seconds with fractions in nanosecond resolution.
2018-01-03, 673👍, 1💬

💬 2018-01-03 Nikhil Narayanan: Helpful man....but I already knew the stuff....the presentation is simple..nice! JAVA is great, right!

SslReverseEchoer.java - SSL Server Socket Example
This section provides a tutorial example on how to write a sample program to create a SSL server socket to listen for incoming SSL socket connection requests from client machines.
2017-11-27, 1295👍, 1💬

Installing Visual GC Plugin
This section provides a tutorial example on how to install the Visual GC plugin to Java VisualVM and monitor GC activities.
2017-10-25, 2132👍, 4💬

PDF Printing Version: JDK Tutorials
Information on how to obtain the PDF version of this book for printing.
2017-09-29, 1963👍, 5💬

💬 2017-09-29 gloax29: merci

💬 2015-11-20 sameer: good going

💬 2015-09-02 Herong: Dharshan, you can follow tutorials presented at JSSE - Java Implementation of SSL and TLS.

💬 2015-09-01 Dharshan: I want to learn JSSE

< 1 2 3 4 5 > >>   Sort: Rank