Introduction to JAVA Basics
Introduction to JAVA Basics
to JAVA
DR. RAJASHRI JOSHI
Paper Name :Core JAVA
SYLLABUS
Paper code: CA-411T
Unit I: Introduction to JAVA
Textbooks:
Unit II: Package and Exception in JAVA
1. Programming with JAVA: A
Primer by E. Balguruswamy
Unit III: Constructor, Wrapper, String and StringBuffer class in
2. Core Java Volume 1-
Fundamentals by Cay S. JAVA
Horstmann and Gary Cornell
Unit IV: Interfaces and Threads in JAVA
Unit I: Introduction to JAVA
Introduction to JAVA Control statements
Datatypes
Operators
Unit II: Package and Exception in JAVA
Importing Packages
Types of Packages
Exception handling
Uncaught Exception
Unit III: Constructor, Wrapper, String and
StringBuffer class in JAVA
Constructors
Immutability
Creating and Initializing Strings using methods of Strings and StringBuffer class
Unit IV: Interfaces and Threads in JAVA
Interface:
Thread:
Defining interface
Thread life cycle
Abstract Methods in Interface
Creating and Implementing thread
Implementing Interfaces
Multithreaded Programming
Extending Interfaces
Thread priorities
Interface References
Synchronization of thread
Default Methods in interfaces
Resuming and stopping threads
Static methods in Interfaces
Constants in Interfaces
Introduction to JAVA
JAVA is a Simple, Object Oriented Programming Language .
Developed by :
electronic machines.
JAVA installation
Download JDK
Click the below link to download jdk23 for you windows 64 bit system.
https://download.oracle.com/java/23/latest/jdk-23_windows-x64_bin.exe
OR
Visit
https://www.oracle.com/in/java/technologies/downloads
To set the Environment Variables, you need to search Environment Variables in the Task
Bar and click on “Edit the system environment variables”
Under System variables, select the “Path” variable and click on “Edit”. Click
on “New” then paste the Path Address ie
Java is Distributed
Java is Interpreted
Java is Robust
Java is Secure
Java is Architecture-neutral
Java is Portable
Java’s Performance
Java is Multithreaded
Java is Dynamic
How JAVA is different from C++
History of JAVA
Version Release Major changes
Date
JDK Beta 1995
JDK 1.0 January 1996 The Very first version was released on January 23, 1996. The principal
stable variant, JDK 1.0.2, is called Java 1.
JDK 1.1 February Was released on February 19, 1997. There were many additions in JDK 1.1
1997 as compared to version 1.0 such as
A broad retooling of the AWT occasion show Inner classes added to the
language
JavaBeans
JDBC
RMI
J2SE 1.2 December Play area” was the codename which was given to this form and was
1998 released on 8th December 1998. Its real expansion included: strictfp
keyword
the Swing graphical API was coordinated into the centre classes Sun’s JVM
was outfitted with a JIT compiler out of the blue Java module, Java IDL, an
IDL usage for CORBA interoperability
Collections system
Version Release Major changes
Date
“J2SE 1.3 May 2000 Codename- “KESTREL” Release Date- 8th May 2000 Additions:
HotSpot JVM included
Java Naming and Directory Interface
JPDA
JavaSound
Synthetic proxy classes
J2SE 1.4 February Codename- “Merlin” Release Date- 6th February 2002 Additions: Library
2002 improvements
JAVA SE 8 March 2014 Released Date- 18th March 2014 Language level support for lambda
expressions and default methods and a new date and time API inspired by
Joda Time..
JAVA SE 9 September Release Date: 21st September 2017 Project Jigsaw: designing and
2017 implementing a standard, a module system for the Java SE platform, and to
apply that system to the platform itself and the JDK.
JDK is an implementation of any one of the below given Java Platforms released by Oracle
Corporation:
•Standard Edition Java Platform
•Enterprise Edition Java Platform
•Micro Edition Java Platform
Class File
A Java class file is a file containing Java bytecode and having .class extension that can be executed by
JVM.
The .class files describes the instructions to the Java Virtual Machine.
The .class file contains the bytecode that will translate by the JVM into platform-specific machine code.
The javac command is used to convert the Java source file into the class file.
JAVA Bytecode
Java bytecode is the instruction set for the Java
Virtual Machine.