SlideShare a Scribd company logo
INTRODUCTION TO
CORE JAVA
PSKTECHNOLOGIES
▪ An ISO 9001:2015 (QMS) Certified IT Company
Computer Education | Software Development
|Computer Sales & Services
▪ Plot No-780, Near DurgaTemple, Katol Road Chaoni,
Nagpur-13
▪ Phone: 9975288300 / 9970141466
▪ Email: info@psktechnologies.co.in
▪ website: www.pskitservices.com
Website: www.pskitservices.com
Phone: 9975288300 / 9970141466
 History
 Several Java Version
 Feature of java
 Internal Detail
 JVM
 What is JVM
 Variables
 Data Type in java
 Advantages of naming Convention in java
 CONTENT
 HISTORY
Java is a general, all-purpose computer programming language that is circumstantial, class-
based, object-oriented, and specially designed to have few application dependencies as possible.
Java was developed initially for interactive television, but it was too advanced technology for the
digital cable television industry at the time. It is proposed to let application developers “write once, run
anywhere, suggesting that compiled Java code can run on all platforms that condone Java without
the necessity to recompile. Java applications are compiled to byte code that can run on any Java
virtual machine (JVM) regardless of computer architecture.
James Gosling is generally credited as inventor of the Java programming language
Website: www.pskitservices.com
Phone: 9975288300 / 9970141466
First version released in 1995,Several java versions have been released, and they are:
 JDK Alpha and Beta (1995)
 JDK 1.0 (23rd Jan 1996)
 JDK 1.1 (19th Feb 1997)
 J2SE 1.2 (8th Dec 1998)
 J2SE 1.3 (8th May 2000)
 J2SE 1.4 (6th Feb 2002)
 J2SE 5.0 (30th Sep 2004)
 Java SE 6 (11th Dec 2006)
 Java SE 7 (28th July 2011)
 Java SE 8 (18th March 2014)
 Java SE 9 (21st Sep 2017)
 Java SE 10 (20th March 2018)
FEATURES OF JAVA
The following are some important features of Java Programming Language:
Website: www.pskitservices.com
Phone: 9975288300 / 9970141466
 Simple
 Platform Independent
 Architectural Neutral
 Dynamic and Extensible
 Portable
 Multi-Threading
 Distributed
 Networked
 Secured
 High Performance
 Internal Details of Hello Java Program
 What happens at compile time?
At compile time, java file is compiled by Java Compiler (It does not interact with OS) and converts the java code
into byte code.
Java Virtual Machine(JVM)
 What happens At runtime ?
At runtime, following steps are performed:
• Class Loader : Is the subsystem of JVM that is used to load class files
• Byte CodeVerifier: Checks the code fragments for illegal code that can violate access right to objects.
• Interpreter: Read byte code stream then execute the instructions. Website: www.pskitservices.com
Phone: 9975288300 / 9970141466
 IMPORTANT DEFINATION
 Class : Keyword is used to declare a class in java.
 Public: Keyword is an access modifier which represents visibility, it means it is visible to all.
 Static : Is a keyword, if we declare any method as static, it is known as static method. The
core advantage of static method is that there is no need to create object to invoke
the static method. The main method is executed by the JVM, so it doesn't require to
create object to invoke the main method. So it saves memory.
 Void : Is the return type of the method, it means it doesn't return any value.
 Main : Represents startup of the program.
Website: www.pskitservices.com
Phone: 9975288300 / 9970141466
 Valid java main method signature
1. public static void main(String[] args)
2. public static void main(String []args)
3. public static void main(String args[])
4. public static void main(String... args)
5. static public void main(String[] args)
6. public static final void main(String[] args)
7. final public static void main(String[] args)
8. Final strictfp public static void main(String[] args)
 Invalid java main method signature
1. public void main(String[] args)
2. static void main(String[] args)
3. public void static main(String[] args)
4. abstract public static void main(String[] args)
 What is JDK, JRE and JVM
Understanding the difference between JDK, JRE and JVM is important in Java. We are having
brief overview of JVM here.
 JVM
JVM (Java Virtual Machine) is an abstract machine. It is a specification that provides runtime
environment in which java byte code can be executed. JVM (Java Virtual Machine) is an abstract
machine. It is a specification that provides runtime environment in which java byte code can be
executed.
The JVM performs following main tasks:
 Loads code
 Verifies code
 Executes code
 Provides runtime environment
Website: www.pskitservices.com
Phone: 9975288300 / 9970141466
 JRE
JRE is an acronym for Java Runtime Environment. It is used
to provide runtime environment. It is the implementation of
JVM. It physically exists. It contains set of libraries+ other
files that JVM uses at runtime. Implementation of JVMs are
also actively released by other companies Sun Micro
Systems.
 JDK
JDK is an acronym for Java Development Kit. It
physically exists. It contains JRE+ development tools.
 JVM (JavaVirtual Machine)
JVM (Java Virtual Machine) is an abstract machine. It is a specification that provides runtime
environment in which java byte code can be executed. JVMs are available for many hardware
and software platforms (i.e. JVM is platform dependent).
 What is JVM
It is A specification where working of Java Virtual Machine is specified. But implementation
provider is independent to choose the algorithm. Its implementation has been provided by
Sun and other companies.
An implementation its implementation is known as JRE (Java Runtime Environment).
Runtime Instance Whenever you write java command on the command prompt to run the
java class, and instance of JVM is created.
Website: www.pskitservices.com
Phone: 9975288300 / 9970141466
 What JVM does?
The JVM performs following operation:
• Loads code
• Verifies code
• Executes code
• Provides runtime environment
JVM provides definitions for the:
• Memory area
• Class file format
• Register set
• Garbage-collected heap
• Fatal error reporting etc.
Website: www.pskitservices.com
Phone: 9975288300 / 9970141466
 Internal Architecture of JVM
Let's understand the internal architecture of JVM. It contains class loader, memory area, execution
engine etc. it Contain
1. Class loader:
Class loader is a subsystem of JVM that is used to
load class files.
2. Class (Method)Area:
Class (Method) Area stores per-class structures such
as the runtime constant pool, field and method data,
the code for methods.
3. Heap:
It is the runtime data area in which objects are
allocated.
Website: www.pskitservices.com
Phone: 9975288300 / 9970141466
4. Stack:
Java Stack stores frames. It holds local variables and partial results, and plays a part in method
invocation and return.
Each thread has a private JVM stack, created at the same time as thread.
A new frame is created each time a method is invoked. A frame is destroyed when its method
invocation completes.
5. ProgramCounter Register:
PC (program counter) register. It contains the address of the Java virtual machine instruction
currently being executed.
6. Native Method Stack
It contains all the native methods used in the application.
7. Execution Engine:
a. A virtual processor
b. Interpreter: Read byte code stream then execute the instructions.
c. Just-In-Time (JIT) compiler: It is used to improve the performance. JIT compiles parts of the
byte code that have similar functionality at the same time, and hence reduces the amount of
time needed for compilation. Here the term? Compiler? Refers to a translator from the
instruction set of a Java virtual machine (JVM) to the instruction set of a specific CPU.
 Variable
Variable is name of reserved area allocated in memory.
 Local Variable
A variable that is declared inside the method is called local variable.
 Instance Variable
A variable that is declared inside the class but outside the method is called instance variable. It is not declared as
static.
 Static variable
A variable that is declared as static is called static variable. It cannot be local.
 Types of Variable
There are three types of variables in java
1. local variable
2. instance variable
3. static variable
Website: www.pskitservices.com
Phone: 9975288300 / 9970141466
 DataTypes in Java
In java, there are two types of data types
1. Primitive data types
2. Non-primitive data types
Data Type Default Value Default Size
Boolean false 1 bit
Char 'u0000' 2 byte
Byte 0 1 byte
Short 0 2 byte
Int 0 4 byte
Long 0L 8 byte
Float 0.0f 4 byte
Double 0.0d 8 byte Website: www.pskitservices.com
Phone: 9975288300 / 9970141466
 Advantage of naming conventions in java
By using standard Java naming conventions, you make your code easier to read for yourself and for
other programmers. Readability of Java program is very important. It indicates that less time is spent to
figure out what the code does.
Name Convention
Class name Should start with uppercase letter and be a noun e.g.
String , color Button, System, Thread etc.
interface name should start with uppercase letter and be an adjective
e.g. Runnable, Remote, Action Listener etc.
method name should start with lowercase letter and be a verb e.g.
action Performed(), main(), print(), println() etc.
variable name should start with lowercase letter e.g. first Name, order
Number etc.
package name should be in lowercase letter e.g. java, Lang, sql, until
etc.
constants name Should be in uppercase letter. e.g. RED, YELLOW,
MAX_PRIORITY etc.
OUR SOFTWARE COURSES
Website: www.pskitservices.com
Phone: 9975288300 / 9970141466
OUR HARDWARE COURSES
MCITP NETWORKING HARDWARE
CCNA CCNP LINUX
Website: www.pskitservices.com
Phone: 9975288300 / 9970141466
OUR SERVICES
WEBSITE DESIGNING & DEVELOPMENT
Website: www.pskitservices.com
Phone: 9975288300 / 9970141466
IT TRAINING
Website: www.pskitservices.com
Phone: 9975288300 / 9970141466
DIGITAL MARKETING
Website: www.pskitservices.com
Phone: 9975288300 / 9970141466
LAPTOP SALES AND SERVICES
Website: www.pskitservices.com
Phone: 9975288300 / 9970141466
THANK YOU
Address: Plot no-780, Near DurgaTemple,
Katol Road Chhaoni, Nagpur-13
https:/www.pskitservices.com
Contact: 9975288300
FOLLOW US ON:

More Related Content

What's hot (20)

Introduction to java
Introduction to javaIntroduction to java
Introduction to java
jayc8586
 
Introduction to JAVA
Introduction to JAVAIntroduction to JAVA
Introduction to JAVA
Mindsmapped Consulting
 
Core Java introduction | Basics | free course
Core Java introduction | Basics | free course Core Java introduction | Basics | free course
Core Java introduction | Basics | free course
Kernel Training
 
8 most expected java interview questions
8 most expected java interview questions8 most expected java interview questions
8 most expected java interview questions
Poonam Kherde
 
Core Java Tutorials by Mahika Tutorials
Core Java Tutorials by Mahika TutorialsCore Java Tutorials by Mahika Tutorials
Core Java Tutorials by Mahika Tutorials
Mahika Tutorials
 
Java & advanced java
Java & advanced javaJava & advanced java
Java & advanced java
BASAVARAJ HUNSHAL
 
Basic java tutorial
Basic java tutorialBasic java tutorial
Basic java tutorial
Pedro De Almeida
 
Core java1
Core java1Core java1
Core java1
Ravi varma
 
Great cup of java
Great  cup of javaGreat  cup of java
Great cup of java
CIB Egypt
 
Java introduction
Java introductionJava introduction
Java introduction
The icfai university jaipur
 
Java training in delhi
Java training in delhiJava training in delhi
Java training in delhi
APSMIND TECHNOLOGY PVT LTD.
 
Introduction to Java Programming, Basic Structure, variables Data type, input...
Introduction to Java Programming, Basic Structure, variables Data type, input...Introduction to Java Programming, Basic Structure, variables Data type, input...
Introduction to Java Programming, Basic Structure, variables Data type, input...
Mr. Akaash
 
Java Notes
Java Notes Java Notes
Java Notes
Sreedhar Chowdam
 
Java essential notes
Java essential notesJava essential notes
Java essential notes
Habitamu Asimare
 
Introduction to java
Introduction to javaIntroduction to java
Introduction to java
Steve Fort
 
Advance java prasentation
Advance java prasentationAdvance java prasentation
Advance java prasentation
dhananajay95
 
Java basics
Java basicsJava basics
Java basics
suraj pandey
 
1 java programming- introduction
1  java programming- introduction1  java programming- introduction
1 java programming- introduction
jyoti_lakhani
 
Basic Java Programming
Basic Java ProgrammingBasic Java Programming
Basic Java Programming
Math-Circle
 
Introduction to Java Programming
Introduction to Java ProgrammingIntroduction to Java Programming
Introduction to Java Programming
Ravi Kant Sahu
 
Introduction to java
Introduction to javaIntroduction to java
Introduction to java
jayc8586
 
Core Java introduction | Basics | free course
Core Java introduction | Basics | free course Core Java introduction | Basics | free course
Core Java introduction | Basics | free course
Kernel Training
 
8 most expected java interview questions
8 most expected java interview questions8 most expected java interview questions
8 most expected java interview questions
Poonam Kherde
 
Core Java Tutorials by Mahika Tutorials
Core Java Tutorials by Mahika TutorialsCore Java Tutorials by Mahika Tutorials
Core Java Tutorials by Mahika Tutorials
Mahika Tutorials
 
Great cup of java
Great  cup of javaGreat  cup of java
Great cup of java
CIB Egypt
 
Introduction to Java Programming, Basic Structure, variables Data type, input...
Introduction to Java Programming, Basic Structure, variables Data type, input...Introduction to Java Programming, Basic Structure, variables Data type, input...
Introduction to Java Programming, Basic Structure, variables Data type, input...
Mr. Akaash
 
Introduction to java
Introduction to javaIntroduction to java
Introduction to java
Steve Fort
 
Advance java prasentation
Advance java prasentationAdvance java prasentation
Advance java prasentation
dhananajay95
 
1 java programming- introduction
1  java programming- introduction1  java programming- introduction
1 java programming- introduction
jyoti_lakhani
 
Basic Java Programming
Basic Java ProgrammingBasic Java Programming
Basic Java Programming
Math-Circle
 
Introduction to Java Programming
Introduction to Java ProgrammingIntroduction to Java Programming
Introduction to Java Programming
Ravi Kant Sahu
 

Similar to What is Java? Presentation On Introduction To Core Java By PSK Technologies (20)

OOP-Chap2.docx
OOP-Chap2.docxOOP-Chap2.docx
OOP-Chap2.docx
NaorinHalim
 
FRAUD DETECTION IN ONLINE AUCTIONING
FRAUD DETECTION IN ONLINE AUCTIONINGFRAUD DETECTION IN ONLINE AUCTIONING
FRAUD DETECTION IN ONLINE AUCTIONING
Satish Chandra
 
CORE JAVA
CORE JAVACORE JAVA
CORE JAVA
PUNE VIDYARTHI GRIHA'S COLLEGE OF ENGINEERING, NASHIK
 
UNIT 1.pptx
UNIT 1.pptxUNIT 1.pptx
UNIT 1.pptx
EduclentMegasoftel
 
Chapter One Basics ofJava Programmming.pptx
Chapter One Basics ofJava Programmming.pptxChapter One Basics ofJava Programmming.pptx
Chapter One Basics ofJava Programmming.pptx
Prashant416351
 
Unit-IV_Introduction to Java.pdf
Unit-IV_Introduction to Java.pdfUnit-IV_Introduction to Java.pdf
Unit-IV_Introduction to Java.pdf
Assistant Professor, Shri Shivaji Science College, Amravati
 
Introduction java programming
Introduction java programmingIntroduction java programming
Introduction java programming
Nanthini Kempaiyan
 
Java2020 programming basics and fundamentals
Java2020 programming basics and fundamentalsJava2020 programming basics and fundamentals
Java2020 programming basics and fundamentals
swecsaleem
 
JAVA for Every one
JAVA for Every oneJAVA for Every one
JAVA for Every one
Satyam Pandey
 
Java programming material for beginners by Nithin, VVCE, Mysuru
Java programming material for beginners by Nithin, VVCE, MysuruJava programming material for beginners by Nithin, VVCE, Mysuru
Java programming material for beginners by Nithin, VVCE, Mysuru
Nithin Kumar,VVCE, Mysuru
 
Sybsc cs sem 3 core java
Sybsc cs sem 3 core javaSybsc cs sem 3 core java
Sybsc cs sem 3 core java
WE-IT TUTORIALS
 
Object Oriented Programming-JAVA
Object Oriented Programming-JAVAObject Oriented Programming-JAVA
Object Oriented Programming-JAVA
Home
 
Java programming basics
Java programming basicsJava programming basics
Java programming basics
Hamid Ghorbani
 
Java basic concept
Java basic conceptJava basic concept
Java basic concept
University of Potsdam
 
Javanotes ww8
Javanotes ww8Javanotes ww8
Javanotes ww8
kumar467
 
Java notes
Java notesJava notes
Java notes
Chaitanya Rajkumar Limmala
 
Java performance tuning
Java performance tuningJava performance tuning
Java performance tuning
Jerry Kurian
 
Java Programming
Java ProgrammingJava Programming
Java Programming
Prof. Dr. K. Adisesha
 
Java virtual machine
Java virtual machineJava virtual machine
Java virtual machine
Nikhil Sharma
 
OOPS JAVA.pdf
OOPS JAVA.pdfOOPS JAVA.pdf
OOPS JAVA.pdf
DeepanshuMidha5140
 

More from PSK Technolgies Pvt. Ltd. IT Company Nagpur (18)

express.pdf
express.pdfexpress.pdf
express.pdf
PSK Technolgies Pvt. Ltd. IT Company Nagpur
 
express.pptx
express.pptxexpress.pptx
express.pptx
PSK Technolgies Pvt. Ltd. IT Company Nagpur
 
Node J pdf.docx
Node J pdf.docxNode J pdf.docx
Node J pdf.docx
PSK Technolgies Pvt. Ltd. IT Company Nagpur
 
reatppt.pptx
reatppt.pptxreatppt.pptx
reatppt.pptx
PSK Technolgies Pvt. Ltd. IT Company Nagpur
 
Node J pdf.docx
Node J pdf.docxNode J pdf.docx
Node J pdf.docx
PSK Technolgies Pvt. Ltd. IT Company Nagpur
 
HTML.pptx
HTML.pptxHTML.pptx
HTML.pptx
PSK Technolgies Pvt. Ltd. IT Company Nagpur
 
REACT pdf.docx
REACT pdf.docxREACT pdf.docx
REACT pdf.docx
PSK Technolgies Pvt. Ltd. IT Company Nagpur
 
node js.pptx
node js.pptxnode js.pptx
node js.pptx
PSK Technolgies Pvt. Ltd. IT Company Nagpur
 
Low-Cost Digital Marketing Service in Nagpur | PSK Technologies
Low-Cost Digital Marketing Service in Nagpur | PSK TechnologiesLow-Cost Digital Marketing Service in Nagpur | PSK Technologies
Low-Cost Digital Marketing Service in Nagpur | PSK Technologies
PSK Technolgies Pvt. Ltd. IT Company Nagpur
 
Google Algorithm Updates
Google Algorithm UpdatesGoogle Algorithm Updates
Google Algorithm Updates
PSK Technolgies Pvt. Ltd. IT Company Nagpur
 
DIGITAL MARKETING.pptx
DIGITAL MARKETING.pptxDIGITAL MARKETING.pptx
DIGITAL MARKETING.pptx
PSK Technolgies Pvt. Ltd. IT Company Nagpur
 
Frontend Developer.pptx
Frontend Developer.pptxFrontend Developer.pptx
Frontend Developer.pptx
PSK Technolgies Pvt. Ltd. IT Company Nagpur
 
Content Marketing.pptx
Content Marketing.pptxContent Marketing.pptx
Content Marketing.pptx
PSK Technolgies Pvt. Ltd. IT Company Nagpur
 
What is Email Marketing ?
What is Email Marketing ?What is Email Marketing ?
What is Email Marketing ?
PSK Technolgies Pvt. Ltd. IT Company Nagpur
 
Importance of HTML
Importance of HTMLImportance of HTML
Importance of HTML
PSK Technolgies Pvt. Ltd. IT Company Nagpur
 
Core & Advance Java Training For Beginner-PSK Technologies Pvt. Ltd. Nagpur
Core & Advance Java Training For Beginner-PSK Technologies Pvt. Ltd. NagpurCore & Advance Java Training For Beginner-PSK Technologies Pvt. Ltd. Nagpur
Core & Advance Java Training For Beginner-PSK Technologies Pvt. Ltd. Nagpur
PSK Technolgies Pvt. Ltd. IT Company Nagpur
 
Advance Networking Course Details PPT
Advance Networking Course Details PPTAdvance Networking Course Details PPT
Advance Networking Course Details PPT
PSK Technolgies Pvt. Ltd. IT Company Nagpur
 
What is c++ programming
What is c++ programmingWhat is c++ programming
What is c++ programming
PSK Technolgies Pvt. Ltd. IT Company Nagpur
 

Recently uploaded (20)

BÀI TẬP BỔ TRỢ TIẾNG ANH 9 THEO ĐƠN VỊ BÀI HỌC - GLOBAL SUCCESS - CẢ NĂM (TỪ...
BÀI TẬP BỔ TRỢ TIẾNG ANH 9 THEO ĐƠN VỊ BÀI HỌC - GLOBAL SUCCESS - CẢ NĂM (TỪ...BÀI TẬP BỔ TRỢ TIẾNG ANH 9 THEO ĐƠN VỊ BÀI HỌC - GLOBAL SUCCESS - CẢ NĂM (TỪ...
BÀI TẬP BỔ TRỢ TIẾNG ANH 9 THEO ĐƠN VỊ BÀI HỌC - GLOBAL SUCCESS - CẢ NĂM (TỪ...
Nguyen Thanh Tu Collection
 
Chemotherapy of Malignancy -Anticancer.pptx
Chemotherapy of Malignancy -Anticancer.pptxChemotherapy of Malignancy -Anticancer.pptx
Chemotherapy of Malignancy -Anticancer.pptx
Mayuri Chavan
 
Cultivation Practice of Onion in Nepal.pptx
Cultivation Practice of Onion in Nepal.pptxCultivation Practice of Onion in Nepal.pptx
Cultivation Practice of Onion in Nepal.pptx
UmeshTimilsina1
 
E-Filing_of_Income_Tax.pptx and concept of form 26AS
E-Filing_of_Income_Tax.pptx and concept of form 26ASE-Filing_of_Income_Tax.pptx and concept of form 26AS
E-Filing_of_Income_Tax.pptx and concept of form 26AS
Abinash Palangdar
 
CNS infections (encephalitis, meningitis & Brain abscess
CNS infections (encephalitis, meningitis & Brain abscessCNS infections (encephalitis, meningitis & Brain abscess
CNS infections (encephalitis, meningitis & Brain abscess
Mohamed Rizk Khodair
 
How to Clean Your Contacts Using the Deduplication Menu in Odoo 18
How to Clean Your Contacts Using the Deduplication Menu in Odoo 18How to Clean Your Contacts Using the Deduplication Menu in Odoo 18
How to Clean Your Contacts Using the Deduplication Menu in Odoo 18
Celine George
 
Redesigning Education as a Cognitive Ecosystem: Practical Insights into Emerg...
Redesigning Education as a Cognitive Ecosystem: Practical Insights into Emerg...Redesigning Education as a Cognitive Ecosystem: Practical Insights into Emerg...
Redesigning Education as a Cognitive Ecosystem: Practical Insights into Emerg...
Leonel Morgado
 
Ancient Stone Sculptures of India: As a Source of Indian History
Ancient Stone Sculptures of India: As a Source of Indian HistoryAncient Stone Sculptures of India: As a Source of Indian History
Ancient Stone Sculptures of India: As a Source of Indian History
Virag Sontakke
 
Cultivation Practice of Garlic in Nepal.pptx
Cultivation Practice of Garlic in Nepal.pptxCultivation Practice of Garlic in Nepal.pptx
Cultivation Practice of Garlic in Nepal.pptx
UmeshTimilsina1
 
Form View Attributes in Odoo 18 - Odoo Slides
Form View Attributes in Odoo 18 - Odoo SlidesForm View Attributes in Odoo 18 - Odoo Slides
Form View Attributes in Odoo 18 - Odoo Slides
Celine George
 
Origin of Brahmi script: A breaking down of various theories
Origin of Brahmi script: A breaking down of various theoriesOrigin of Brahmi script: A breaking down of various theories
Origin of Brahmi script: A breaking down of various theories
PrachiSontakke5
 
ANTI-VIRAL DRUGS unit 3 Pharmacology 3.pptx
ANTI-VIRAL DRUGS unit 3 Pharmacology 3.pptxANTI-VIRAL DRUGS unit 3 Pharmacology 3.pptx
ANTI-VIRAL DRUGS unit 3 Pharmacology 3.pptx
Mayuri Chavan
 
Mental Health Assessment in 5th semester bsc. nursing and also used in 2nd ye...
Mental Health Assessment in 5th semester bsc. nursing and also used in 2nd ye...Mental Health Assessment in 5th semester bsc. nursing and also used in 2nd ye...
Mental Health Assessment in 5th semester bsc. nursing and also used in 2nd ye...
parmarjuli1412
 
The role of wall art in interior designing
The role of wall art in interior designingThe role of wall art in interior designing
The role of wall art in interior designing
meghaark2110
 
LDMMIA Reiki News Ed3 Vol1 For Team and Guests
LDMMIA Reiki News Ed3 Vol1 For Team and GuestsLDMMIA Reiki News Ed3 Vol1 For Team and Guests
LDMMIA Reiki News Ed3 Vol1 For Team and Guests
LDM Mia eStudios
 
Botany Assignment Help Guide - Academic Excellence
Botany Assignment Help Guide - Academic ExcellenceBotany Assignment Help Guide - Academic Excellence
Botany Assignment Help Guide - Academic Excellence
online college homework help
 
All About the 990 Unlocking Its Mysteries and Its Power.pdf
All About the 990 Unlocking Its Mysteries and Its Power.pdfAll About the 990 Unlocking Its Mysteries and Its Power.pdf
All About the 990 Unlocking Its Mysteries and Its Power.pdf
TechSoup
 
Rock Art As a Source of Ancient Indian History
Rock Art As a Source of Ancient Indian HistoryRock Art As a Source of Ancient Indian History
Rock Art As a Source of Ancient Indian History
Virag Sontakke
 
Module 1: Foundations of Research
Module 1: Foundations of ResearchModule 1: Foundations of Research
Module 1: Foundations of Research
drroxannekemp
 
Classification of mental disorder in 5th semester bsc. nursing and also used ...
Classification of mental disorder in 5th semester bsc. nursing and also used ...Classification of mental disorder in 5th semester bsc. nursing and also used ...
Classification of mental disorder in 5th semester bsc. nursing and also used ...
parmarjuli1412
 
BÀI TẬP BỔ TRỢ TIẾNG ANH 9 THEO ĐƠN VỊ BÀI HỌC - GLOBAL SUCCESS - CẢ NĂM (TỪ...
BÀI TẬP BỔ TRỢ TIẾNG ANH 9 THEO ĐƠN VỊ BÀI HỌC - GLOBAL SUCCESS - CẢ NĂM (TỪ...BÀI TẬP BỔ TRỢ TIẾNG ANH 9 THEO ĐƠN VỊ BÀI HỌC - GLOBAL SUCCESS - CẢ NĂM (TỪ...
BÀI TẬP BỔ TRỢ TIẾNG ANH 9 THEO ĐƠN VỊ BÀI HỌC - GLOBAL SUCCESS - CẢ NĂM (TỪ...
Nguyen Thanh Tu Collection
 
Chemotherapy of Malignancy -Anticancer.pptx
Chemotherapy of Malignancy -Anticancer.pptxChemotherapy of Malignancy -Anticancer.pptx
Chemotherapy of Malignancy -Anticancer.pptx
Mayuri Chavan
 
Cultivation Practice of Onion in Nepal.pptx
Cultivation Practice of Onion in Nepal.pptxCultivation Practice of Onion in Nepal.pptx
Cultivation Practice of Onion in Nepal.pptx
UmeshTimilsina1
 
E-Filing_of_Income_Tax.pptx and concept of form 26AS
E-Filing_of_Income_Tax.pptx and concept of form 26ASE-Filing_of_Income_Tax.pptx and concept of form 26AS
E-Filing_of_Income_Tax.pptx and concept of form 26AS
Abinash Palangdar
 
CNS infections (encephalitis, meningitis & Brain abscess
CNS infections (encephalitis, meningitis & Brain abscessCNS infections (encephalitis, meningitis & Brain abscess
CNS infections (encephalitis, meningitis & Brain abscess
Mohamed Rizk Khodair
 
How to Clean Your Contacts Using the Deduplication Menu in Odoo 18
How to Clean Your Contacts Using the Deduplication Menu in Odoo 18How to Clean Your Contacts Using the Deduplication Menu in Odoo 18
How to Clean Your Contacts Using the Deduplication Menu in Odoo 18
Celine George
 
Redesigning Education as a Cognitive Ecosystem: Practical Insights into Emerg...
Redesigning Education as a Cognitive Ecosystem: Practical Insights into Emerg...Redesigning Education as a Cognitive Ecosystem: Practical Insights into Emerg...
Redesigning Education as a Cognitive Ecosystem: Practical Insights into Emerg...
Leonel Morgado
 
Ancient Stone Sculptures of India: As a Source of Indian History
Ancient Stone Sculptures of India: As a Source of Indian HistoryAncient Stone Sculptures of India: As a Source of Indian History
Ancient Stone Sculptures of India: As a Source of Indian History
Virag Sontakke
 
Cultivation Practice of Garlic in Nepal.pptx
Cultivation Practice of Garlic in Nepal.pptxCultivation Practice of Garlic in Nepal.pptx
Cultivation Practice of Garlic in Nepal.pptx
UmeshTimilsina1
 
Form View Attributes in Odoo 18 - Odoo Slides
Form View Attributes in Odoo 18 - Odoo SlidesForm View Attributes in Odoo 18 - Odoo Slides
Form View Attributes in Odoo 18 - Odoo Slides
Celine George
 
Origin of Brahmi script: A breaking down of various theories
Origin of Brahmi script: A breaking down of various theoriesOrigin of Brahmi script: A breaking down of various theories
Origin of Brahmi script: A breaking down of various theories
PrachiSontakke5
 
ANTI-VIRAL DRUGS unit 3 Pharmacology 3.pptx
ANTI-VIRAL DRUGS unit 3 Pharmacology 3.pptxANTI-VIRAL DRUGS unit 3 Pharmacology 3.pptx
ANTI-VIRAL DRUGS unit 3 Pharmacology 3.pptx
Mayuri Chavan
 
Mental Health Assessment in 5th semester bsc. nursing and also used in 2nd ye...
Mental Health Assessment in 5th semester bsc. nursing and also used in 2nd ye...Mental Health Assessment in 5th semester bsc. nursing and also used in 2nd ye...
Mental Health Assessment in 5th semester bsc. nursing and also used in 2nd ye...
parmarjuli1412
 
The role of wall art in interior designing
The role of wall art in interior designingThe role of wall art in interior designing
The role of wall art in interior designing
meghaark2110
 
LDMMIA Reiki News Ed3 Vol1 For Team and Guests
LDMMIA Reiki News Ed3 Vol1 For Team and GuestsLDMMIA Reiki News Ed3 Vol1 For Team and Guests
LDMMIA Reiki News Ed3 Vol1 For Team and Guests
LDM Mia eStudios
 
Botany Assignment Help Guide - Academic Excellence
Botany Assignment Help Guide - Academic ExcellenceBotany Assignment Help Guide - Academic Excellence
Botany Assignment Help Guide - Academic Excellence
online college homework help
 
All About the 990 Unlocking Its Mysteries and Its Power.pdf
All About the 990 Unlocking Its Mysteries and Its Power.pdfAll About the 990 Unlocking Its Mysteries and Its Power.pdf
All About the 990 Unlocking Its Mysteries and Its Power.pdf
TechSoup
 
Rock Art As a Source of Ancient Indian History
Rock Art As a Source of Ancient Indian HistoryRock Art As a Source of Ancient Indian History
Rock Art As a Source of Ancient Indian History
Virag Sontakke
 
Module 1: Foundations of Research
Module 1: Foundations of ResearchModule 1: Foundations of Research
Module 1: Foundations of Research
drroxannekemp
 
Classification of mental disorder in 5th semester bsc. nursing and also used ...
Classification of mental disorder in 5th semester bsc. nursing and also used ...Classification of mental disorder in 5th semester bsc. nursing and also used ...
Classification of mental disorder in 5th semester bsc. nursing and also used ...
parmarjuli1412
 

What is Java? Presentation On Introduction To Core Java By PSK Technologies

  • 1. INTRODUCTION TO CORE JAVA PSKTECHNOLOGIES ▪ An ISO 9001:2015 (QMS) Certified IT Company Computer Education | Software Development |Computer Sales & Services ▪ Plot No-780, Near DurgaTemple, Katol Road Chaoni, Nagpur-13 ▪ Phone: 9975288300 / 9970141466 ▪ Email: info@psktechnologies.co.in ▪ website: www.pskitservices.com
  • 2. Website: www.pskitservices.com Phone: 9975288300 / 9970141466  History  Several Java Version  Feature of java  Internal Detail  JVM  What is JVM  Variables  Data Type in java  Advantages of naming Convention in java  CONTENT
  • 3.  HISTORY Java is a general, all-purpose computer programming language that is circumstantial, class- based, object-oriented, and specially designed to have few application dependencies as possible. Java was developed initially for interactive television, but it was too advanced technology for the digital cable television industry at the time. It is proposed to let application developers “write once, run anywhere, suggesting that compiled Java code can run on all platforms that condone Java without the necessity to recompile. Java applications are compiled to byte code that can run on any Java virtual machine (JVM) regardless of computer architecture. James Gosling is generally credited as inventor of the Java programming language Website: www.pskitservices.com Phone: 9975288300 / 9970141466 First version released in 1995,Several java versions have been released, and they are:  JDK Alpha and Beta (1995)  JDK 1.0 (23rd Jan 1996)  JDK 1.1 (19th Feb 1997)  J2SE 1.2 (8th Dec 1998)  J2SE 1.3 (8th May 2000)  J2SE 1.4 (6th Feb 2002)  J2SE 5.0 (30th Sep 2004)  Java SE 6 (11th Dec 2006)  Java SE 7 (28th July 2011)  Java SE 8 (18th March 2014)  Java SE 9 (21st Sep 2017)  Java SE 10 (20th March 2018)
  • 4. FEATURES OF JAVA The following are some important features of Java Programming Language: Website: www.pskitservices.com Phone: 9975288300 / 9970141466  Simple  Platform Independent  Architectural Neutral  Dynamic and Extensible  Portable  Multi-Threading  Distributed  Networked  Secured  High Performance
  • 5.  Internal Details of Hello Java Program  What happens at compile time? At compile time, java file is compiled by Java Compiler (It does not interact with OS) and converts the java code into byte code. Java Virtual Machine(JVM)  What happens At runtime ? At runtime, following steps are performed: • Class Loader : Is the subsystem of JVM that is used to load class files • Byte CodeVerifier: Checks the code fragments for illegal code that can violate access right to objects. • Interpreter: Read byte code stream then execute the instructions. Website: www.pskitservices.com Phone: 9975288300 / 9970141466
  • 6.  IMPORTANT DEFINATION  Class : Keyword is used to declare a class in java.  Public: Keyword is an access modifier which represents visibility, it means it is visible to all.  Static : Is a keyword, if we declare any method as static, it is known as static method. The core advantage of static method is that there is no need to create object to invoke the static method. The main method is executed by the JVM, so it doesn't require to create object to invoke the main method. So it saves memory.  Void : Is the return type of the method, it means it doesn't return any value.  Main : Represents startup of the program. Website: www.pskitservices.com Phone: 9975288300 / 9970141466
  • 7.  Valid java main method signature 1. public static void main(String[] args) 2. public static void main(String []args) 3. public static void main(String args[]) 4. public static void main(String... args) 5. static public void main(String[] args) 6. public static final void main(String[] args) 7. final public static void main(String[] args) 8. Final strictfp public static void main(String[] args)  Invalid java main method signature 1. public void main(String[] args) 2. static void main(String[] args) 3. public void static main(String[] args) 4. abstract public static void main(String[] args)
  • 8.  What is JDK, JRE and JVM Understanding the difference between JDK, JRE and JVM is important in Java. We are having brief overview of JVM here.  JVM JVM (Java Virtual Machine) is an abstract machine. It is a specification that provides runtime environment in which java byte code can be executed. JVM (Java Virtual Machine) is an abstract machine. It is a specification that provides runtime environment in which java byte code can be executed. The JVM performs following main tasks:  Loads code  Verifies code  Executes code  Provides runtime environment Website: www.pskitservices.com Phone: 9975288300 / 9970141466
  • 9.  JRE JRE is an acronym for Java Runtime Environment. It is used to provide runtime environment. It is the implementation of JVM. It physically exists. It contains set of libraries+ other files that JVM uses at runtime. Implementation of JVMs are also actively released by other companies Sun Micro Systems.  JDK JDK is an acronym for Java Development Kit. It physically exists. It contains JRE+ development tools.
  • 10.  JVM (JavaVirtual Machine) JVM (Java Virtual Machine) is an abstract machine. It is a specification that provides runtime environment in which java byte code can be executed. JVMs are available for many hardware and software platforms (i.e. JVM is platform dependent).  What is JVM It is A specification where working of Java Virtual Machine is specified. But implementation provider is independent to choose the algorithm. Its implementation has been provided by Sun and other companies. An implementation its implementation is known as JRE (Java Runtime Environment). Runtime Instance Whenever you write java command on the command prompt to run the java class, and instance of JVM is created. Website: www.pskitservices.com Phone: 9975288300 / 9970141466
  • 11.  What JVM does? The JVM performs following operation: • Loads code • Verifies code • Executes code • Provides runtime environment JVM provides definitions for the: • Memory area • Class file format • Register set • Garbage-collected heap • Fatal error reporting etc. Website: www.pskitservices.com Phone: 9975288300 / 9970141466
  • 12.  Internal Architecture of JVM Let's understand the internal architecture of JVM. It contains class loader, memory area, execution engine etc. it Contain 1. Class loader: Class loader is a subsystem of JVM that is used to load class files. 2. Class (Method)Area: Class (Method) Area stores per-class structures such as the runtime constant pool, field and method data, the code for methods. 3. Heap: It is the runtime data area in which objects are allocated. Website: www.pskitservices.com Phone: 9975288300 / 9970141466
  • 13. 4. Stack: Java Stack stores frames. It holds local variables and partial results, and plays a part in method invocation and return. Each thread has a private JVM stack, created at the same time as thread. A new frame is created each time a method is invoked. A frame is destroyed when its method invocation completes. 5. ProgramCounter Register: PC (program counter) register. It contains the address of the Java virtual machine instruction currently being executed. 6. Native Method Stack It contains all the native methods used in the application. 7. Execution Engine: a. A virtual processor b. Interpreter: Read byte code stream then execute the instructions. c. Just-In-Time (JIT) compiler: It is used to improve the performance. JIT compiles parts of the byte code that have similar functionality at the same time, and hence reduces the amount of time needed for compilation. Here the term? Compiler? Refers to a translator from the instruction set of a Java virtual machine (JVM) to the instruction set of a specific CPU.
  • 14.  Variable Variable is name of reserved area allocated in memory.  Local Variable A variable that is declared inside the method is called local variable.  Instance Variable A variable that is declared inside the class but outside the method is called instance variable. It is not declared as static.  Static variable A variable that is declared as static is called static variable. It cannot be local.  Types of Variable There are three types of variables in java 1. local variable 2. instance variable 3. static variable Website: www.pskitservices.com Phone: 9975288300 / 9970141466
  • 15.  DataTypes in Java In java, there are two types of data types 1. Primitive data types 2. Non-primitive data types Data Type Default Value Default Size Boolean false 1 bit Char 'u0000' 2 byte Byte 0 1 byte Short 0 2 byte Int 0 4 byte Long 0L 8 byte Float 0.0f 4 byte Double 0.0d 8 byte Website: www.pskitservices.com Phone: 9975288300 / 9970141466
  • 16.  Advantage of naming conventions in java By using standard Java naming conventions, you make your code easier to read for yourself and for other programmers. Readability of Java program is very important. It indicates that less time is spent to figure out what the code does. Name Convention Class name Should start with uppercase letter and be a noun e.g. String , color Button, System, Thread etc. interface name should start with uppercase letter and be an adjective e.g. Runnable, Remote, Action Listener etc. method name should start with lowercase letter and be a verb e.g. action Performed(), main(), print(), println() etc. variable name should start with lowercase letter e.g. first Name, order Number etc. package name should be in lowercase letter e.g. java, Lang, sql, until etc. constants name Should be in uppercase letter. e.g. RED, YELLOW, MAX_PRIORITY etc.
  • 17. OUR SOFTWARE COURSES Website: www.pskitservices.com Phone: 9975288300 / 9970141466
  • 18. OUR HARDWARE COURSES MCITP NETWORKING HARDWARE CCNA CCNP LINUX Website: www.pskitservices.com Phone: 9975288300 / 9970141466
  • 19. OUR SERVICES WEBSITE DESIGNING & DEVELOPMENT Website: www.pskitservices.com Phone: 9975288300 / 9970141466
  • 22. LAPTOP SALES AND SERVICES Website: www.pskitservices.com Phone: 9975288300 / 9970141466
  • 23. THANK YOU Address: Plot no-780, Near DurgaTemple, Katol Road Chhaoni, Nagpur-13 https:/www.pskitservices.com Contact: 9975288300 FOLLOW US ON:
  翻译: