< 1 2 3 4 > >>   Sort: Rank

SwingHello.java - My First Swing Program
This section provides a tutorial example on how to a simple Java Swing program. SwingHello.java is my first Swing program that displays a blank window with 'Hello world!' in the window title bar.
2017-09-05, 10087👍, 4💬

💬 2017-09-05 jack: good

💬 2016-01-27 Herong: Neha, you can just put the following line into your batch file and run it: java -cp . SwingHello

💬 2016-01-26 neha: how to run above program through windows batch files

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.
2017-09-04, 117👍, 1💬

'jstat' - JVM Statistics Monitoring Tool
This chapter provides tutorial notes on JVM statistics monitoring tools. Topics include listing JVM processes with 'jps', the JVM remote monitoring server - 'jstatd', Java security policy file, connecting 'jps' and 'jstat' to a remote machine, RMI protocol and URL, getting garbage collection statist...
2017-08-10, 741👍, 1💬

💬 2017-08-10 abdel: genial very good !!!

💬 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

(More comments ...)

'jps' - JVM Process Status Tool
This section describes the JVM process status tool, 'jps' for listing JVM processes on local and remote machines.
2017-08-03, 754👍, 1💬

JSSE - Java Implementation of SSL and TLS
This section describes the JSSE (Java Secure Socket Extension) package, which provides a Java implementation of the SSL and TLS protocols.
2017-07-18, 385👍, 1💬

💬 2017-07-18 Srini: This is not complete

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...
2017-07-17, 729👍, 2💬

💬 2016-12-15 vijay: thanks

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💬

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

'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, 4110👍, 6💬

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

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, 456👍, 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, 327👍, 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, 1318👍, 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, 6111👍, 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

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

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

💬 2016-12-17 J.: 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, 1877👍, 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, 296👍, 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💬

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, 3289👍, 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, 3160👍, 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, 525👍, 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(),

< 1 2 3 4 > >>   Sort: Rank