Learning JAVA for
beginners
Salute,
I am Nikhil
Here you will learn java in simple steps like a beginner
So let's start java with live example for creating simple and interesting games
For running java you have to install small software named JAVA SDK
you know java is platform independent …
What is JDK (Java Development Kit) ?
JDK is a software development program provided by
sun Microsystems. Java Development Kit or JDK comes in various versions and can
be downloaded free from the sun Microsystems. JVM compiler, debugger and other
tools are used with JDK for developing java based application & java
applets. So make sure that your JVM compiler & JDK versions are same.
JDK also known as Java 2 Platform That comes in
three editions J2ME, J2SE & J2EE. If you are beginner or learning Java then
start by downloading J2SE.
Acronyms:
JDK Java Development Kit
JVM Java virtual machine
Download JDK
you can download JDK from www.javasoft.com/j2se
Latest version of JDK
1.
JDK 5.0 Update 6
the full internal version number for this update release is 1.5.0_06-b05 (where
"b" means "build"). The external version number is 5.0u6.
Java Version 1.5.0_06 introduces various security enhancements in Java Plug-in
and Java Web Start to better protect users and enterprises. For more
information please visit: http://java.sun.com/j2se/1.5.0/ReleaseNotes.html
SO let's start learning java particles…
The first program we are going to learn is a simple java application "Hello Java"
in which you create a program and run it then it will show a message …
So The first step is Open your notepad and type this program,
//Simple java application…
public class Hellojava
{
public static void main (String [] args)
{
System.out.println("Hello ! Java");
}
}
I suggest you to type this program
by your own without seeing this…
Now save this notepad file as
"Hellojava.java"
The point is, you have to save
this file by the class name which you have given in the program and you have to
use the .java extension
Setting the path
Now you have to do an important
task is to set the path for java
So let's start .
First Step
Go to run type sysedit
Now type this in the AUTOEXEC.BAT
file
SET
PATH=C:\WINDOWS\COMMAND;C:\JDK1.3.1\BIN
Or if you install jdk in another
drive then give that path…
now save and exit



Need ForTechPosted Jun 18, 2011, 3:40 PM
Java