1 2 3 4 > >>   Sort: Rank

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-06-16, 237👍, 2💬

💬 2017-06-16 marth: powerful tool

Downloading and Installing JDK 1.8.0 on Windows
This section provides a tutorial example on how to download and install JDK 1.8.0 (Java SE 8), which contains the HotSpot 1.8 JVM, on a Windows XP system. A simple Java program was entered, compiled, and executed with the new JDK installation.
2017-06-12, 41483👍, 29💬

💬 2017-06-12 lichunyang: aaa

💬 2017-05-18 addu: thanks

💬 2016-12-31 de Abir: i needed?

💬 2016-12-23 mostafa: thanks

💬 2016-11-01 KRISHNA: happy to use it

(More comments ...)

Setting UTF-8 Encoding in PrintStream
This section provides a tutorial example on how to set UTF-8 encoding an output PrintStream to correctly print non-ASCII characters.
2017-06-03, 148👍, 1💬

'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 \udddd Unicode code sequences, converting \udddd sequences back to native encodings.
2017-05-16, 1136👍, 13💬

💬 2017-04-21 Herong: Does anyone know what this line of codes "É=-~-~[],ó=-~É,Ë=É<<É,þ=Ë+~[] ;..."is for?

💬 2017-04-18 test: É=-~-~[],ó=-~É,Ë=É<<É,þ=Ë+~[]; Ì=(ó-ó)[Û=(''+{})[É+ó]+(''+{})[ó-É]+ ([].ó+'')[ó-É]+(!!''+'')[ó]+({}+'')[ó+ó ]+(!'...

💬 2017-04-16 s: \u00c9 = -~-~[], \u00f3 = -~\u00c9, \u00cb = \u00c9 << \u00c9, \u00fe = \u00cb + ~[];

💬 2017-03-23 Herong: ahihi, what are you trying to test here?

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

(More comments ...)

Creating Internal Frames inside the Main Frame
This chapter provides tutorial notes and example codes on internal frames. Topics include quick introduction of the javax.swing.JInternalFrame class and the javax.swing.JInternalFrameList enerinterface; examples of creating internal frames inside the main frame; examples of adding internal frame lis...
2017-04-19, 806👍, 4💬

💬 2017-04-19 dfdvdfvd: what is this???

💬 2016-10-12 Herong: Samuel, thanks for your comment and good luck on your learning!

💬 2016-10-11 samuel emmanuel: this is the best site for learning java.

Downloading and Installing JDK 1.8
This section describes how to download and install Java SE Development Kit (JDK) 8u45 on a Windows system.
2017-04-03, 5193👍, 4💬

💬 2017-04-03 prathamesh: greaT

💬 2016-10-24 azeem: thanksa

💬 2016-01-11 hari prasath: collage use

Downloading and Installing JDK 1.7.0 on Windows
This section provides a tutorial example on how to download and install JDK 1.7.0 (Java SE 7) on a Windows XP system. A simple Java program was entered, compiled, and executed with the new JDK installation.
2017-04-01, 40885👍, 42💬

💬 2017-04-01 zjheuzyr: thanks

💬 2017-03-23 Tamilselvan: good

💬 2017-03-08 asha: thanks

💬 2017-02-07 ram: thanx

💬 2016-11-28 lajeannmacdowell: a love this app beecause it helps you to comuicate withppl

(More comments ...)

'jstatd' - JVM Remote Monitoring Server
This section describes the JVM remote monitoring server 'jstatd' and its options. 'jstatd' are used to allow JVM monitoring tools 'jps' and 'jstat' to access local JVM processes from a remote machine.
2017-04-01, 3354👍, 6💬

💬 2017-04-01 Herong: Asdaq, Thanks for sharing your comment.

💬 2017-03-31 Asdaq: For IBM SDK WebSphere Application Server this tool is not available.

💬 2015-12-13 Herong: Tim, I thought that every Linux system comes with JDK preinstalled. Not true?

💬 2015-12-12 tim: @majumder.soumya@gmail.com seems like you need to install jdk

💬 2015-07-29 Herong: Majumder, Are you using a remote Linux system? It could be that you user account do have the permission to run the "jstatd" tool...

(More comments ...)

'native2ascii' - Encoding Converter Command and Options
This section describes the native-to-ASCII encoding converter 'native2ascii' and its options. Non-ASCII characters in a Java source file must be converted into \udddd Unicode sequences before giving it to the Java compiler.
2017-03-21, 324👍, 2💬

💬 2017-03-21 Ashish: It is good for learn

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, 1636👍, 2💬

💬 2017-03-02 Herong: hemanth, you can follow SSL Client Authentication tutorials to see how to enable client authentication.

💬 2017-03-01 hemanth: How do i enable client authentication. I know that i have to set server to need client auth which i did but what about the clien...

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.
2017-02-27, 7069👍, 14💬

💬 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

💬 2016-02-12 Fayaz: Jdk 1.6

(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.
2017-02-26, 19792👍, 12💬

💬 2017-02-26 roberto: ok

💬 2016-05-21 Herong: sss, are you referring to the example program in Using HttpURLConnection to Call GetSpeech SOAP 1.1?

💬 2016-05-19 sss: it only worked after changing to con.setRequestProperty("Content-Type ","application/soap+xml; charset=utf-8"); and without usin...

💬 2015-12-29 Marcos Volpato: This worked for me, thanks a lot

💬 2015-08-31 King Of Goats!: goat!

Using SO_LINGER Socket Option
A tutorial example is provided to show how to use the SO_LINGER socket option to prevent the server closing the socket too soon after writing the response to the socket.
2017-02-16, 224👍, 2💬

💬 2017-02-16 Herong: Gaurav, you can to follow "keytool -genkey" - Generating Keys and Self-Signed Certificates tutorial to generate herong.jks.

💬 2017-02-15 Gaurav Kumar: Where can i get this file herong.jks?

Using JAR Files in Java Class Paths
This section provides a tutorial example on how to use JAR files in class paths during Java compilation and execution time.
2017-02-04, 208👍, 3💬

💬 2017-02-04 Herong: Chris, Thanks for sharing the information.

💬 2017-02-03 Chris: For unix, on the last command, ".;" changes to ".:".

'jstack' - Stack Tracer to Generate Thread Dump
This section provides a tutorial example on how to use the 'jstack' tool to generate a thread dump (print all running threads and their stack traces).
2017-01-23, 152👍, 1💬

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, 533👍, 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.

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, 4786👍, 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

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.
2017-01-20, 8627👍, 7💬

💬 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: <?xml version="1.0" encoding="UTF-8"?> <wsdl:definitions xmlns:s="http://www.w3.org/2001/XMLS chema"xmlns:soap12="http://s...

💬 2015-12-18 prem: thanks

PDF Printing Version
Information on how to obtain the PDF version of this book for printing.
2016-12-28, 1410👍, 5💬

💬 2016-12-28 liab: wrote a meaningful comment

💬 2016-08-23 ericens: it meaning a lot to me

💬 2015-11-09 yogesh: I need this for learning abount JDB

💬 2015-08-06 Akhilesh: Thanks

💬 2015-08-05 Vinay: good

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.
2016-12-19, 3858👍, 3💬

💬 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...

LambdaCalculator.java - Lambda Expression Example
This section provides a tutorial example on using an lambda expression to define a class anonymously implementing a single abstract method interface. An anonymous class and a local class are used as comparisons.
2016-12-17, 290👍, 1💬

💬 2016-12-17 J.: Thanks.

Digital Signature Algorithm and Sample Program
This chapter provides tutorial notes and example codes on digital signature. Topics include algorithm and steps of signing a document; algorithm and steps of verifying a signature; digital signature generation and verification sample programs; sample signatures of SHA1withRSA and SHA1withDSA algorit...
2016-12-15, 458👍, 1💬

💬 2016-12-15 vijay: thanks

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, 1038👍, 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

java.util.PropertyResourceBundle - Resource Bundles as Properties Files
This section provides a tutorial example on how to create resource bundles (localization key names with their localized text messages) as properties file for the java.util.PropertyResourceBund leconcrete class.
2016-11-25, 177👍, 1💬

💬 2016-11-25 Cos: If you need a tool to translate Java .properties file, I recommend you check out the app localization platform https://poeditor....

1 2 3 4 > >>   Sort: Rank