First it was named as Oak in 1991 , but later changed to java in 1995.James Gosling, Mike Sheridan, and Patrick Naughton initiated the Java language project in June 1991. The language was initially called Oak after an oak tree that stood outside Gosling's office , it went by the name Green later, and was later renamed Java, from Java coffee, said to be consumed in large quantities by the language's creators.
There were five primary goals in the creation of the Java language: It must be "simple, object-oriented, and familiar". It must be "robust and secure". It must be "architecture-neutral and portable". It must execute with "high performance". It must be "interpreted, threaded, and dynamic".
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.
Simple Object-Oriented Platform independent Secured Robust Architecture neutral Portable Dynamic Interpreted High Performance Multithreaded Distributed
Object-oriented programming (OOP) is a programming language model organized around objects rather than "actions" and data rather than logic.Java is a modular programing i.e the problem is divided into small small modules
For executing any java program, you need to install the JDK if you don't have installed it, download the JDK and install it. set path of the jdk/bin directory. create the java program compile and run the java program
To set the temporary path of JDK, you need to follow following steps:
Open command prompt copy the path of jdk/bin directory write in command prompt: set path=copied_path For Example:
set path=C:\Program Files\Java\jdk1.6.0_23\bin
open Notepad write this program...
class Simple{
public static void main(String args[]){
System.out.println("Hello Java");
}
}
save this file as Simple.java
now open command prompt first Setpath as mentioned above now To compile: write javac Simple.java To execute: write java Simple
Output:Hello Java
In next Lecture : Lecture 2
Thank you