< 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, 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, 861👍, 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, 5388👍, 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, 10158👍, 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, 1551👍, 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, 4593👍, 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, 442👍, 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, 1462👍, 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, 231👍, 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, 2036👍, 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, 2362👍, 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, 356👍, 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, 1173👍, 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, 2025👍, 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, 2127👍, 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, 691👍, 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, 847👍, 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, 11890👍, 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, 5881👍, 3💬

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

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

This section provides a tutorial example on how to add manifest files to JAR files.
2016-05-12, 2619👍, 1💬

💬 2016-05-12 mps: nice..

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

< 1 2 3 4 > >>   Sort: Rank