Core Java : Lecture 1

Java is High level language.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.PrinciplesThere 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”.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.FeaturesSimple
Object-Oriented
Platform independent
Secured
Robust
Architecture neutral
Portable
Dynamic
Interpreted
High Performance
Multithreaded
DistributedWhat is Object Oriented ProgrammingObject-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 modulesRequirementsFor 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 programHow to set pathTo 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 FilesJavajdk1.6.0_23binBasic programopen Notepad write this program…class Simple{public static void main(String args[]){System.out.println(“Hello Java”);}}save this file as Simple.javanow open command prompt
first Setpath as mentioned above
now
To compile: writejavac Simple.javaTo execute: writejava SimpleOutput:Hello JavaIn next Lecture : Lecture 2Explanation of the above codeclassesobjectvariablesBasic programThank you

News Reporter

Leave a Reply

Your email address will not be published. Required fields are marked *