Search Java Tutorials

Custom Search

What You Will Want to Complete This Tutorial?

You must have at least 1st and 2nd pre-requirements to start the tute. Other requirements will require for last chapters only. These all are free to use and download!
  1. Java Development Kit Standard Edition (JDK / J2SE) Any Version(www.java.com)
  2. Any Text Editor (Note Pad quite enough or get Notepad++ from (http://notepad-plus.sourceforge.net)
  3. Java Run Time Environment (JRE) Any Version(www.java.com)
  4. Java Enterprise Edition (J2EE) for advanced developing (For last few chapters)(www.java.com)
  5. Java Wireless Toolkit for Mobile Application Development (For Mobile Application Development Chapters) (www.java.com)
  6. Tomcat Web Server to run Servlets. (www.tomcat.apache.org/)
Your operating system may be any version of Windows.
What will you learn (As a summary)?
  1. How to build console and windowed applications using Java
  2. How to build web page elements with Java Applets
  3. How to build Database Programs with Java
  4. How to build enterprise applications with Beans
  5. How to add Email functions to Java programs
  6. How to program smart devices (Phone, PDA etc…) with Java

What You Should Know About Java

Generally software has its own windows, tools that you able to click and type something. With Java, it’s quite opposite.

How and who’s?

Java developed as a modern world option for computer programming. Don’t think about why, but machines do not know how to communicate in English or any other human language. Machines (or Computer Hardware) know how to work with binaries which are zeros and ones (0 and 1) and probably we don’t. Java knows how to convert English into these 0s and 1s and work with hardware.

Tip: Machine Language: The language used in computer hardware. It has only zeros and ones (0 and 1). This language is far more serious to learn and understand. Machine language is the most circuitry level computer language. 0s represents off state of a switch while 1s represent on state.

Tip: High Level Languages: Programming languages that converts English like words into machine language are known as High Level Programming Languages. To do this, java uses two software elements, Compiler and Interpreter. A high level language allows using vocabulary of reasonable terms, and also allows designing intuitive names to areas of computer memory.

Anyhow, we need to give program description to Java to convert it into machine language (0s and 1s). In JAVA this description is known as ‘Source Code’. A Source Code file has .java extension (Remind: First.java).

We tell Java to convert description into Machine language using ‘JAVAC’ command. Java will convert this into ‘intermediate code’ but not to Machine language. As mentioned earlier, this converting process takes out by two software elements, Compiler and Interpreter. ‘JAVAC’ command will start Compiler and makes .class extension file. This consists of ‘intermediate code’, that means contents of this file are not JAVA or Machine language. Interpreter will convert this file into machine language when you run the program with ‘JAVA’ command. Check the folder where you create First.java. You may see First.class too!


These are the Java program production steps.

  1. First you create .java file. That is the ‘Source Code’.
  2. Compile it using JAVAC command and you are compiling it into .class file; known as ‘Intermediate Code’.
  3. You run the program with JAVA command. Interpreter interprets .class into machine language and run.

Interpreter needs support of JRE (Java Runtime Environment) to complete running process.

No comments: