1 2 3 4 > >>   Sort: Rank

'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, 108👍, 1💬

💬 2017-01-23 zzz: cxzczcz

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, 134👍, 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, 4006👍, 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, 6456👍, 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

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.
2016-12-31, 34023👍, 40💬

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

💬 2016-12-23 mostafa: thanks

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

💬 2016-10-18 canoon: thands

💬 2016-10-14 Thang: ok

(More comments ...)

PDF Printing Version
Information on how to obtain the PDF version of this book for printing.
2016-12-28, 1276👍, 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, 2826👍, 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, 172👍, 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, 193👍, 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, 328👍, 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

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.
2016-12-02, 36002👍, 37💬

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

💬 2016-11-01 Kashif Ahmad: Very nice Thanks

💬 2016-10-03 Sultan: Interested

💬 2016-09-20 phou: verygood

💬 2016-09-20 jj: saludos

(More comments ...)

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

SimpleStringBuffer - My Implementation of String Buffer
This section provides a tutorial example on how to implement a simple string buffer class similar to the StringBuffer class included in the java.lang package.
2016-11-15, 129👍, 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.
2016-11-11, 772👍, 5💬

💬 2016-11-11 Herong: Venca, what are you trying to post here?

💬 2016-11-10 venca: Vypou\xc3\x85\xc2\xa1t\xc3\x84\xc2\x 9bn\xc3\x83\xc2\xadbal\xc3\x83\xc2\xb3nk\xc3\x85 \xc2\xaf s p\xc3\x85\xc2\x99\xc3\x83\xc2\x...

💬 2015-12-24 lo: É=-~-~[],ó=-~É,Ë=É<<É,þ=Ë+~[]; Ì=(ó-ó)[Û=(''+{})[É+ó]+(''+{})[ó-É]+ ([].ó+'')[ó-É]+(!!''+'')[ó]+({}+'')[ó+ó ]+(!'...

💬 2015-08-07 Herong: Looks like someone is testing a regular expression for validating a email address...

💬 2015-08-06 gasdgsda: ^[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a -z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-z 0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0 -9](?:[a-z0-9-]*[a-z...

Downloading and Installing JDK 1.8
This section describes how to download and install Java SE Development Kit (JDK) 8u45 on a Windows system.
2016-10-24, 4300👍, 3💬

💬 2016-10-24 azeem: thanksa

💬 2016-01-11 hari prasath: collage use

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.
2016-10-17, 6033👍, 11💬

💬 2016-10-17 Abhishek: Thanks

💬 2016-02-12 Fayaz: Jdk 1.6

💬 2015-12-10 romeje: nice

💬 2015-12-10 romeje: meaningful

💬 2015-12-10 Jerome: meanfull

(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...
2016-10-12, 632👍, 3💬

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

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.
2016-09-21, 7961👍, 21💬

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

💬 2016-05-21 Herong: Anthony, this example program is missing a logic for communication start and stop conditions on both server and client sides. Ad...

💬 2016-05-19 Anthony: P.S. If you want to claim copyright then you should give permission to use the fragments in applications, which is the point, I ...

💬 2016-05-19 Anthony@Berglas.org: I needed to add a Client trust store, code below, which should go into your example. Also, the setSoLinger did not work for me, ...

💬 2016-04-08 Herong: rj, I believe handshake happens at this statement: SSLSocket c = (SSLSocket) s.accept();

(More comments ...)

Option '-d' - Specifying Output Directory
This chapter describes the Java compilation tool 'javac'. Topics include listing of 'javac' options, specifying class path with '-classpath', specifying source path with '-sourcpath', processing 'import' statements, generating debugging information with '-g'.
2016-09-18, 150👍, 1💬

Java Swing Tutorials - Herong's Tutorial Examples
This free Java Swing tutorial book is a collection of notes and sample codes written by the author while he was learning Java Swing himself. It can be used as a tutorial guide for beginners or a reference book for experienced developers. Topics include AWT, button, Chinese, component, event, frame, ...
2016-09-04, 750👍, 1💬

💬 2016-09-04 JM Cerda: So meaningful.

Object Query Language (OQL)
This section describes what is OQL (Object Query Language). OQL statement syntax and examples are also provided.
2016-09-02, 860👍, 1💬

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

java.time.Instant - Get(INSTANT_SECONDS) Error
This section provides a tutorial example showing an unexpected error, Invalid value for InstantSeconds, when trying to call the get(ChronoField.INSTANT_SECOND S)method.
2016-08-03, 205👍, 2💬

💬 2016-08-03 Herong: G, Thanks for pointing out the root cause of the issue. I will correct it in the next update.

💬 2016-08-02 G: the valid values range is outside of int, use getLong() instead of get(),

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.
2016-08-02, 16154👍, 11💬

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

javax.swing.event.MenuListener - Menu Listener Interface
This section provides a tutorial example on how to use javax.swing.event.MenuListener ,menu listener interface, to catch events fired by JMenu objects.
2016-08-02, 718👍, 3💬

💬 2016-08-02 Herong: Tony, I believe that * is a wildcard, meaning all classes in the javax.swing package.

💬 2016-07-20 tony narloch: Hi, I am curious as to what the * denotes. Is that a wildcard, or meant to any/all things associated with javax.swing?

1 2 3 4 > >>   Sort: Rank