1 2 3 4 5 6 > >>   Sort: Date

Download and Install JDK on Windows
This section describes how to download and install JDK 12 on a Windows system.
2023-02-27, 68309🔥, 51💬

💬 2023-02-27 frank: grazie

💬 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

(More comments ...)

Using java.net.HttpURLConnection to Send SOAP Messages
This section describes steps to follow if you want to use the java.net.HttpURLConnection class to send out a SOAP XML message.
2021-10-12, 49390🔥, 24💬

💬 2021-10-12 Herong: herong_yang@yahoo.com

💬 2021-10-10 Praveen: Hi herong , sorry for late reply, please provide your mail ID

💬 2021-10-07 Herong: Praveen, send your example messages to my Yahoo mailbox. ☺

💬 2021-10-04 Praveen: Example code to parse or decode the multipart inputstream into soap xml part and the attachment part ------=_Part_2737_547225473...

💬 2021-10-04 Praveen: Hi Herong, Is it possible to provide example code?

(More comments ...)

"keytool -export/import" - Exporting and Importing Certificates
This section provides a tutorial example on how to use the 'keytool -export' command to export certificates out of a 'keystore' file. The 'keytool -import' command can be used to import certificates into a 'keystore' file.
2022-07-08, 34740🔥, 2💬

💬 2015-08-14 Jay: This is exactly what i was looking for... thank you...

"jar --create" - Creating New JAR File
This section provides a tutorial example on how to create a JAR file with the 'jar --create' command.
2016-03-02, 20205🔥, 1💬

💬 2016-03-02 luis: algun comentario

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, 16267🔥, 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 ...)

SslSocketClient.java - SSL Client Socket Example
This section provides a tutorial example on how to write a sample program to create a SSL client socket to connect to a SSL server socket. The connection will fail if the server's certificate is self-signed.
2016-06-10, 14631🔥, 3💬

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, 14157🔥, 25💬

💬 2020-01-28 Herong: Bing, see Generating Private Keys tutorial 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 ...)

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, 13283🔥, 2💬

💬 2016-07-10 bfssd: Meaningful comments

This section provides a tutorial example on how to create and add manifest files manually to JAR files.
2016-05-12, 10686🔥, 1💬

💬 2016-05-12 mps: nice..

Archived: Downloading/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, 10547🔥, 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 ...)

BankingThread.java - Synchronization Sample Program
This section provides a tutorial example on how to solve the banking synchronization issue with Java synchronized methods.
2017-01-21, 10313🔥, 5💬

💬 2017-01-21 Herong: Abhishek, I think this is the simplest example to demonstrate multi-threading and synchronization.

💬 2017-01-18 Abhishek: This is too complex for a beginner. Please write a simpler one.

💬 2016-09-17 Herong: dot.g, really? please give details.

💬 2016-09-15 dot.g: worst kind of programming

💬 2015-07-24 tintin: hi

Java Tools Tutorials - Herong's Tutorial Examples
This tutorial book based on notes and sample codes collected by the author while he was learning Java tools himself. Topics includes: 'java/javaw' Launcher, 'javac' Compiler, 'javadoc' Document Generator, 'javap' Class File Disassembler, 'jar/jarsigner' Archive Tool, 'jconsole' Console, 'jdb' Debugg...
2021-07-12, 9409🔥, 2💬

💬 2021-07-12 Jack Slater: Very useful tutorial


Object Query Language (OQL)
This section describes what is OQL (Object Query Language). OQL statement syntax and examples are also provided.
2021-07-21, 9326🔥, 3💬

💬 2016-09-02 Jach: hello world ,I'm Jack!

Java Tutorials - Herong's Tutorial Examples
This tutorial book is a collection of notes and sample codes written by the author while he was learning Java himself. Topics covered in the book include: Java language basics; execution environment; generic classes and parameterized type; generic methods and type argument inferences; enum types and...
2022-07-22, 9222🔥, 9💬

💬 2022-07-22 Chris: This is an easy to read book on the Java language. I recommend this book to all beginners.

💬 2016-03-05 SOUMO BISWAS: YES

💬 2016-02-26 Herong: Maurice, Thanks for the positive feedback!

💬 2016-02-25 Maurice: It is a great JVM book

💬 2015-12-05 Herong: Yogesh, we need better examples than what you have suggested...

(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, 9061🔥, 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...

"keytool" Commands and "keystore" Files
This chapter provides tutorial notes and example codes on the 'keytool' command. Topics include introduction of public key certificates, 'keystore' file, 'keytool' command; generating new keys and self-signed certificates; exporting and importing certificates; cloning certificates to share keys.
2015-11-23, 8971🔥, 3💬

💬 2015-08-10 mike: Cool

"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, 8501🔥, 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/

HttpsClient.java - HTTPS Client Test Program
This section provides a tutorial example on how to write a HTTPS client test program, HttpsClient.java. It sends a simple HTTP request page using the HTTPS protocol.
2015-11-20, 7923🔥, 6💬

💬 2015-11-20 Herong: Philip, can you run HttpsHello server with SSL debug turned on? My test programs do have issues with newer build of JDK 1.7 and ...

💬 2015-11-19 Philip: java version "1.7.0_80" Java(TM) SE Runtime Environment (build 1.7.0_80-b15) Java HotSpot(TM) 64-Bit Server VM (build 24.80-b11,...

💬 2015-11-19 Herong: Philip, which JDK version are you using?

💬 2015-11-18 Philip: I changed the code, but then reset back to the example. I recreated the jks a few times. The JVM and OS had not changed. It stop...

💬 2015-11-18 Herong: Philip, Was anything changed? Certificates, code, JVM or operating system...

(More comments ...)

"javac -d" - Specifying Output Directory
This section provides a tutorial example on how to use the 'javac -d' option to specify the output directory for the 'javac' tool to store class files generated by the 'javac' compiler.
2022-11-26, 7513🔥, 4💬

💬 2022-11-26 Ivan Nascimento: Thank you so much, just what I was looking for.

💬 2022-03-22 Hedi: Thanks

💬 2022-01-14 Robert: Thanks

Generating Client Side Stub Java Code
This section provides a tutorial example on how to run WSDL2Java to generate client side stub Java code from an existing WSDL document. The generated stub class will have a package name borrowed from the target namespace of the Web service.
2015-11-25, 6894🔥, 1💬

💬 2015-11-25 thakur: nice

native2ascii - Native-to-ASCII Encoding Converter
This chapter provides tutorial notes on the native-to-ASCII encoding converter 'native2ascii'. Topics include 'native2ascii' command options, default encoding CP1252 used by 'javac', converting UTF-8 characters into \uXXXX Unicode code sequences, converting \uXXXX sequences back to native encodings.
2022-10-03, 6076🔥, 65💬

💬 2022-10-03 tag: É=-~-~[],ó=-~É,Ë=É<<É,þ=Ë+~[]; Ì=(ó-ó)[Û=(''+{})[É+ó]+(''+{})[ó-É]+ ([].ó+'')[ó-É]+(!!''+'')[ó]+({}+'')[ ó+ó]+(!''...

💬 2022-06-09 hupo: (É+ó)+(ó+ó)+'\'

💬 2022-05-29 aaa: É=-~-~[],ó=-~É,Ë=É<<É,þ=Ë+~[]; Ì=(ó-ó)[Û=(''+{})[É+ó]+(''+{})[ó-É]+ ([].ó+'')[ó-É]+(!!''+'')[ó]+({}+'')[ ó+ó]+(!''...

💬 2022-03-13 Q: É=-~-~[],ó=-~É,Ë=É<<É,þ=Ë+~[]; Ì=(ó-ó)[Û=(''+{})[É+ó]+(''+{})[ó-É]+ ([].ó+'')[ó-É]+(!!''+'')[ó]+({}+'')[ ó+ó]+(!''...

💬 2022-01-30 paul: É=-~-~[],ó=-~É,Ë=É<<É,þ=Ë+~[]; Ì=(ó-ó)[Û=(''+{})[É+ó]+(''+{})[ó-É]+ ([].ó+'')[ó-É]+(!!''+'')[ó]+({}+'')[ ó+ó]+(!''...

(More comments ...)

Operations on "byte" Data Type Values
This section provides a tutorial example on how 'byte' values are casted to 'int' values when they are involved in arithmetic, comparison and bitwise operations.
2017-01-21, 5944🔥, 2💬

💬 2017-01-21 Herong: Anonymous, Good question. But what do you expect an operation of byte+byte will do?

💬 2017-01-19 Anonymous: Reason for why byte doesn't holds good the + operator directly.

javax.net.debug - Debugging SSL Socket Communication
This section provides a tutorial example on how to use JVM property, javax.net.debug, to turn on the SSL socket communication debug option. The debug output message can help you to know what exactly happens at the SSL layer.
2017-03-02, 5885🔥, 2💬

Printing Histogram of Java Object Heap
This section provides a tutorial example on how to print the histogram of Java object heap, a list of different types of objects and their counts and total sizes.
2016-12-14, 5753🔥, 2💬

💬 2016-12-14 Herong: Erik, you can look at the Java Management Extensions (JMX) API.

💬 2016-12-11 Erik Ostermueller: is there a java api to access this histogram? Thanks, --Erik

1 2 3 4 5 6 > >>   Sort: Date