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.
- CORE JAVA
- 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 .
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.
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.
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.
====================================================================================================================================
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 ..
- Type the programs in NOTEPAD and compile using DOS.
- We can type the programs in DOS platform itself and compile.
(B) : How to Save JAVA:
- After typing the program, click SAVE, choosing the same folder in which the JAVA software is installed.
- Type a name to save, followed by .JAVA (dot java).
How to Compile JAVA:
- In DOS platform, choose the drive in which JAVA software is installed.
- Type javac followed by program name.java
How to Run JAVA:
- 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)
- Type java followed by program name .
How to use DOS platform to type\save\edit JAVA:
- In DOS platform, choose the drive in which JAVA software is installed.
- Type edit followed by program name.java.
- If there is already a program we typed in NOTEPAD with the same program name, then that program will open in DOS prompt.
- Otherwise , a new window for typing the program will appear in DOS.Then we can type a new program there.
- Click Save, after typing the program in DOS.
- Click File-->Exit , to return to the normal DOS prompt ,and compile and run it using the same steps specified above.
- 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
====================================================================================================================================================
No comments:
Post a Comment