Documentation and Books

Recent site activity

Java Development‎ > ‎

Java

What is Java?

A nice description about the Java programming language can be found in the white paper written by James Gosling and Henry McGilton. Here is a small part of the document that describes in short the intention of the Java programming language:

'The Java programming language is designed to meet the challenges of application development in the context of heterogeneous, network-wide distributed environments. Paramount among these challenges is secure delivery of applications that consume the minimum of system resources, can run on any hardware and software platform, and can be extended dynamically.

The Java programming language originated as part of a research project to develop advanced software for a wide variety of network devices and embedded systems. The goal was to develop a small, reliable, portable, distributed, real-time operating platform. When the project started, C++ was the language of choice. But over time the difficulties encountered with C++ grew to the point where the problems could best be addressed by creating an entirely new language platform. Design and architecture decisions drew from a variety of languages such as Eiffel, SmallTalk, Objective C, and Cedar/Mesa. The result is a language platform that has proven ideal for developing secure, distributed, network-based end-user applications in environments ranging from network-embedded devices to the World-Wide Web and the desktop.


Read the white paper to learn more about the Java programming language and the Java platform.

My tutorials :


Java 6 features


Java 7 features


Java Native Interface

3rd party tutorials :

Tutorials:

JavaWorld :
DevShed

Videos :

Software and downloads :

A de-compiler for Java source code.
Freeware Java decompiler.
A freeware Java de-compiler written in C++ for fast de-compiling and displaying of the de-compiled code. It supports the new Java 5 features like annotations, generics and enums. It also supports complete JAR files which is very convinient since it displays the package structure. Another nice feature is that it has support for syntax highlighting.

General questions and answers :

Is it possible to use Strings in a switch statement?
Is there a list of all possible values for the @SuppressWarnings annotation?
How to solve the precision conversion problem of a double / float to a BigDecimal?
What is the minimum required Java version for Windows Vista?
Are there operating systems completly based on Java?
Is there a list of all the available Java Virtual Machines?
How to remote debug an application?
Is it possible to access DLL (Dynamic Link Library) code using Java?
What is the difference between a fully qualified class name and a class name?
What is the difference between checked and unchecked exceptions?
What does the '-Xintelligent_as_can_be_execution' and the '-Xcompletely_brain_damaged_execution' option do when executing a Java programme?
Is it possible to record sound in an applet?
How can I set the minimum or maximum heap size for a Java Web Start application?
How to enable/disable assertions?
What are the default values of the primitives and wrapper classes?

Common problems and solutions :

Compiler errors :

Compiler warnings :

Exceptions :

I am getting a ''java.lang.NullPointerException'' what is going on?
I am getting a ''java.lang.ClassCastException'' what is going on?
I am getting a ''java.lang.ClassNotFoundException'' what is going on?
I am getting a ''java.lang.ArrayIndexOutOfBoundsException'' whats going on?
I am getting a ''java.lang.NumberFormatException'' whats going on?
I am getting a ''java.lang.StringIndexOutOfBoundsException'' whats going on?
I am getting a ''java.lang.NoSuchMethodException'' whats going on?
I am getting a ''java.lang.NoSuchFieldException'' whats going on?
I am getting a ''java.lang.IllegalAccessException'' whats going on?
I am getting a ''java.lang.InstantiationException'' whats going on?
I am getting a ''java.lang.CloneNotSupportedException'' whats going on?
I am getting a ''java.lang.UnsupportedClassVersionError'' whats going on?
I am getting a ''java.lang.UnsatisfiedLinkError'' whats going on?

Techniques and common solutions:


Assert :

Java IO :


How to create a temporarily file?
How to compress a file using a GZIP compression?
How to decompress a file using a GZIP compression?
How to copy a file?
How to rename a file or folder (directory)?
How to delete a file?
How to move a file or folder to another folder (directory)?
How to make a file read only?
How to read binary data from a file?
How to write binary data to a file?
How to read UTF-8 encoded data from a file?
How to write UTF-8 encoded data to a file?
How to read ISO Latin-1 encoded data from a file?
How to write ISO Latin-1 encoded data to a file?
How to check if a file or folder already exists?
How to get the current working folder (directory)?
How can i open a file that is situated within a JAR (or deployed WAR) file that is on my class path?
How to get file system information?

Arrays :

Date & Time :

Localization :

Command line :

Formatting :

Fonts :

JVM :

JDBC :

Regulair Expressions :

String manipulation :

Image and Image manipulation :

Networking and IO :

Swing & User Interface

Project site & reference documentation:

Standard edition :

Java SE 6 API Specification
J2SE 1.5.0 API Specification
J2SE 1.4.2 API Specification
J2SE 1.3.1 API Specification

Enterprise edition :

Java EE 5 API Specification

J2EE 1.4 Documentation
J2EE 1.4 API Specification

J2EE 1.3 Documentation
J2EE 1.3 API Specification

J2EE 1.2 Documentation
J2EE 1.2.1 API Specification

Javacard :

Javacard

Java Web Services :

Java Web Services

XML :

Other Technologies :