< 1 2 3 4 > >>   Sort: Rank

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💬

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, 8668👍, 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, 1440👍, 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, 1565👍, 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, 266👍, 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(),

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, 975👍, 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?

showInternal*Dialog() - Displaying Internal Dialog Boxes
This section provides a tutorial example on how to use the static methods, showInternal*Dialog(), to create and display internal dialog boxes inside an parent container.
2016-07-19, 1793👍, 3💬

💬 2015-08-26 Herong: Airam, which part is not working? :-)

💬 2015-08-25 airam: this doesn't work dude

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().
2016-07-10, 1616👍, 1💬

💬 2016-07-10 bfssd: Meaningful comments

PDF Printing Version
Information on how to obtain the PDF version of this book for printing.
2016-07-09, 607👍, 3💬

💬 2016-07-09 vetal: good

💬 2015-12-01 Michael Collins: Thanks

Managing JAR Files with WinZIP
This section provides a tutorial example on how to manage a JAR file as a ZIP file with the ZIP tool, WinZIP.
2016-06-10, 670👍, 2💬

💬 2016-06-10 Herong: Jordyn, can you try to follow Test #1 mentioned in the tutorial to open a .jar file with WinZIP?

💬 2016-06-10 Jordyn: This still doesn't quite help with opening the files for me. How do you open a .jar file? :/

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, 9410👍, 3💬

💬 2016-06-10 Herong: Algérian, did you find what you were looking for here?

💬 2016-06-08 the Algérian: Je te jure que aprés une semaine de recherche j'ai pu trouver ce que j'étais d'entrain de chercher. Bravo et Bon continuation.

💬 2016-05-27 rono: very good your code

getSelection() - Getting Selected Button
This section provides a tutorial example on how to use the getSelection() method to know which button is selected in a button group.
2016-06-02, 5128👍, 3💬

💬 2016-02-22 aaa: God is the greatest

💬 2016-02-22 aaa: we are here to learn

Adding META-INF/MANIFEST.MF to JAR Files
This section provides a tutorial example on how to add manifest files to JAR files.
2016-05-12, 2085👍, 1💬

💬 2016-05-12 mps: nice..

PDF Printing Version: JDK Tutorials
Information on how to obtain the PDF version of this book for printing.
2016-05-11, 1218👍, 4💬

💬 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

SSL Client Authentication Test Result
This section provides the test result of running the SSL server program and the SSL client program. The result shows that the server and the client authenticated each other's identity correctly.
2016-05-11, 399👍, 2💬

💬 2016-05-11 Herong: Roman, good point. We need to compile the Java code into a class file first. Thanks.

💬 2016-05-07 Roman: you have small mistake there, it should be: With SslReverseEchoerRevised.class and... instead of: With SslReverseEchoerRevised.j...

'javaw' - Launching Java Programs without Console
This section provides a tutorial example on how to use 'javaw' tool to launch a Java program without the output console window.
2016-04-27, 470👍, 1💬

setBit() - Storing a Bit into a Byte Array
This section provides a tutorial example on how to set one bit into a byte array at a specific bit position setBit().
2016-04-08, 1282👍, 1💬

💬 2016-04-08 frank: this works

SSL Client Authentication
This chapter provides tutorial notes and example codes on SSL client authentication. Topics include introduction to SSL client authentication; creating server and client certificates; writing server and client test programs; running SSL client authentication tests.
2016-03-30, 192👍, 1💬

Printable Copy - PDF Version
Information on how to obtain the PDF version of this book for printing.
2016-03-22, 1415👍, 6💬

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

💬 2016-03-21 Keval: Please share more knowledge of java!

💬 2015-11-19 abdou: Good

💬 2015-09-24 Theany: Good

💬 2015-09-24 Theany: good

(More comments ...)

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) on a Windows 7 system. A simple Java program was entered, compiled, and executed with the new JDK installation.
2016-03-10, 936👍, 2💬

💬 2016-03-10 sudha: thanks

💬 2015-09-22 ram: no

Java Tutorials - Herong's Tutorial Examples
This free Java book is a collection of notes and sample codes written by the author while he was learning Java himself. It covers topics related Java language core features and classes provided in the java.lang.* package: array, bit, byte, deadlock, expression, generic class, generic method, literal...
2016-03-05, 2978👍, 8💬

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

💬 2015-12-05 yogesh kumar: Visit more java examples [URL removed]

(More comments ...)

interrupt() - Method to Terminate Thread
This section provides a tutorial example on how to terminate running threads with the interrupt() method.
2016-03-02, 1336👍, 1💬

💬 2016-03-02 vinay malik: good post

Creating the First JAR File - hello.jar
This section provides a tutorial example on how to create a JAR file with the 'jar' command.
2016-03-02, 6297👍, 1💬

💬 2016-03-02 luis: algun comentario

< 1 2 3 4 > >>   Sort: Rank