Walk Lightly on this PLANET and yet leave such a FOOTPRINT that cannot be erased for thousands of Years..!!!
Visit Codstech for Cyber Security related Posts !

Visitors

Sunday, July 22, 2012

Introduction to JAVA

For a complete list, click JAVA 

Refer these 2 programs , then you will be able to do JAVA Programs..

And for theory part , refer "Some Theory Part in JAVA"

=============================================================

What is Java

Java is a programming language and a platform.
Java is a high level, robust, secured and object-oriented programming language.
Platform: Any hardware or software environment in which a program runs, is known as a platform. Since Java has its own runtime environment (JRE) and API, it is called platform.

Java applications can be devided into two.

  1. CORE JAVA
  2. ADVANCED JAVA

CORE JAVA includes ;

  • Consol Application (Compile using DOS platform)
  • Window Application (We use some software like NETBEANS , ECLIPSE etc.)

ADVANCED JAVA includes ;

  • Web Application 
  • Mobile Application 

Installing JAVA 

Click here to install java ( or from here , and netbeans from here )
Java for beginners . Read from here .

What is the difference between JVM, JDK, JRE

JVM

The Java Virtual machine (JVM) is the virtual machine that run the Java bytecodes. The JVM doesn't understand Java typo, that's why you compile your *.java files to obtain *.class files that contain the bytecodes understandable by the JVM. It's also the entity that allows Java to be a "portable language" (write once, run anywhere).

The Java Virtual Machine is responsible for the hardware- and operating system-independence of the Java SE platform, the small size of compiled code (bytecodes), and platform security.

JDK and JRE

Java Runtime Environment (JRE) The Java Runtime Environment (JRE) provides the libraries, the Java Virtual Machine, and other components to run applets and applications written in the Java programming language. In addition, two key deployment technologies are part of the JRE: Java Plug-in, which enables applets to run in popular browsers; and Java Web Start, which deploys standalone applications over a network. It is also the foundation for the technologies in the Java 2 Platform, Enterprise Edition (J2EE) for enterprise software development and deployment. The JRE does not contain tools and utilities such as compilers or debuggers for developing applets and applications.

Java Development Kit (JDK) The JDK is a superset of the JRE, and contains everything that is in the JRE, plus tools such as the compilers and debuggers necessary for developing applets and applications.
====================================================================================================================================

At first , we are going through 

CORE JAVA..Consol Application 

(Compile using DOS platform)

**********************
Refer  Welcome Program-Consol Application also, while reading the below given section. So that , you will understand more better.

(A ) : How\Where to type JAVA:

2 ways you can type a program .. 
  1. Type the programs in NOTEPAD and compile using DOS.
  2. We can type the programs in DOS platform itself and compile.

(B) : How to Save JAVA:

  1. After typing the program, click SAVE, choosing the same folder in which the JAVA software is installed.
  2. Type a name to save, followed by .JAVA (dot java).

How to Compile JAVA:

  1. In DOS platform, choose the drive in which  JAVA software is installed.
  2. Type javac followed  by program name.java

How to Run JAVA:

  1. In DOS platform, choose the drive in which  JAVA software is installed. .(You already did this while compiling.So, no need to do this again)
  2. Type java followed by program name .

How to use DOS platform to type\save\edit JAVA:

  1. In DOS platform, choose the drive in which  JAVA software is installed.
  2. Type edit followed by program name.java.
  3. If there is already a program we typed in NOTEPAD with the same program name, then that program will open in DOS prompt.
  4. Otherwise , a new window for typing the program will appear in DOS.Then we can type a new program there.
  5. Click Save, after typing the program in DOS.
  6. Click File-->Exit , to return to the normal DOS prompt  ,and compile and run it using the same steps specified above.
  7. Note that , that program can open in NOTEPAD too.
====================================================================================================================================================

Next , we are going through 

CORE JAVA...Window Application

(We use some software like NETBEANS , ECLIPSE etc.)

**********************
Refer    Welcome Program-Window Application  to understand the window application.



NETBEANS IDE  


Download NetBeans IDE 


Download NetBeans from here for free. (You need JDK or Java Development Kit for installing NetBeans . If you have no Java platform on your system , download from here (which contains JDK+NetBeans ) .





ECLIPSE IDE




I just show the two well-known software for core java-window application..
To know more , visit Welcome Program-Window Application 

====================================================================================================================================================


After doing CORE JAVA programs , we will concentrate on ADVANCED JAVA.

(Will continue......)