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)

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

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

PDF
Introduction java programming
Nanthini Kempaiyan
 
PPTX
UNIT 1.pptx
EduclentMegasoftel
 
PPTX
Java
Zeeshan Khan
 
PDF
Java programming material for beginners by Nithin, VVCE, Mysuru
Nithin Kumar,VVCE, Mysuru
 
PPTX
Introduction to java
Java Lover
 
PPTX
1 java fundamental KSHRD
Tola Meng
 
PPTX
Java fundamentals
Om Ganesh
 
PPTX
JAVA PROGRAM CONSTRUCTS OR LANGUAGE BASICS.pptx
AALIM MUHAMMED SALEGH COLLEGE OF ENGINEERING
 
PPTX
Java-1st.pptx about Java technology before oops
buvanabala
 
PPTX
Iintroduction to java , Java Coding , basics of java.pptx
MayankParashar31
 
PPT
Object Oriented Programming-JAVA
Home
 
PPTX
Skillwise Elementary Java Programming
Skillwise Group
 
PPTX
Core java introduction
Beenu Gautam
 
PPT
Presentation on java
shashi shekhar
 
PPTX
Java Technologies notes of unit 1 and 2.
sumanyadavdpg
 
PDF
Top 10 Important Core Java Interview questions and answers.pdf
Umesh Kumar
 
PDF
java notes.pdf
JitendraYadav351971
 
PPTX
2 22CA026_Advance Java Programming_Data types and Operators.pptx
dolphiverma80
 
PPTX
Java
Ashiqure Rahman
 
Introduction java programming
Nanthini Kempaiyan
 
UNIT 1.pptx
EduclentMegasoftel
 
Java programming material for beginners by Nithin, VVCE, Mysuru
Nithin Kumar,VVCE, Mysuru
 
Introduction to java
Java Lover
 
1 java fundamental KSHRD
Tola Meng
 
Java fundamentals
Om Ganesh
 
JAVA PROGRAM CONSTRUCTS OR LANGUAGE BASICS.pptx
AALIM MUHAMMED SALEGH COLLEGE OF ENGINEERING
 
Java-1st.pptx about Java technology before oops
buvanabala
 
Iintroduction to java , Java Coding , basics of java.pptx
MayankParashar31
 
Object Oriented Programming-JAVA
Home
 
Skillwise Elementary Java Programming
Skillwise Group
 
Core java introduction
Beenu Gautam
 
Presentation on java
shashi shekhar
 
Java Technologies notes of unit 1 and 2.
sumanyadavdpg
 
Top 10 Important Core Java Interview questions and answers.pdf
Umesh Kumar
 
java notes.pdf
JitendraYadav351971
 
2 22CA026_Advance Java Programming_Data types and Operators.pptx
dolphiverma80
 
Ad

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

PPTX
Low-Cost Digital Marketing Service in Nagpur | PSK Technologies
PSK Technolgies Pvt. Ltd. IT Company Nagpur
 
PPTX
Google Algorithm Updates
PSK Technolgies Pvt. Ltd. IT Company Nagpur
 
PPTX
Frontend Developer.pptx
PSK Technolgies Pvt. Ltd. IT Company Nagpur
 
PPTX
What is Email Marketing ?
PSK Technolgies Pvt. Ltd. IT Company Nagpur
 
PPTX
Core & Advance Java Training For Beginner-PSK Technologies Pvt. Ltd. Nagpur
PSK Technolgies Pvt. Ltd. IT Company Nagpur
 
PPTX
Advance Networking Course Details PPT
PSK Technolgies Pvt. Ltd. IT Company Nagpur
 
PPTX
What is c++ programming
PSK Technolgies Pvt. Ltd. IT Company Nagpur
 
Ad

Recently uploaded (20)

PDF
Exploring the Different Types of Experimental Research
Thelma Villaflores
 
PPTX
Identifying elements in the story. Arrange the events in the story
geraldineamahido2
 
PDF
0725.WHITEPAPER-UNIQUEWAYSOFPROTOTYPINGANDUXNOW.pdf
Thomas GIRARD, MA, CDP
 
PPTX
Stereochemistry-Optical Isomerism in organic compoundsptx
Tarannum Nadaf-Mansuri
 
PDF
The Different Types of Non-Experimental Research
Thelma Villaflores
 
PDF
Chapter-V-DED-Entrepreneurship: Institutions Facilitating Entrepreneurship
Dayanand Huded
 
PPTX
How to Convert an Opportunity into a Quotation in Odoo 18 CRM
Celine George
 
PPTX
QUARTER 1 WEEK 2 PLOT, POV AND CONFLICTS
KynaParas
 
PPTX
Cultivation practice of Litchi in Nepal.pptx
UmeshTimilsina1
 
PPTX
HUMAN RESOURCE MANAGEMENT: RECRUITMENT, SELECTION, PLACEMENT, DEPLOYMENT, TRA...
PRADEEP ABOTHU
 
PDF
Reconstruct, Restore, Reimagine: New Perspectives on Stoke Newington’s Histor...
History of Stoke Newington
 
PPTX
Controller Request and Response in Odoo18
Celine George
 
PPTX
How to Create a PDF Report in Odoo 18 - Odoo Slides
Celine George
 
PPTX
Universal immunization Programme (UIP).pptx
Vishal Chanalia
 
PDF
Stokey: A Jewish Village by Rachel Kolsky
History of Stoke Newington
 
PPTX
grade 5 lesson matatag ENGLISH 5_Q1_PPT_WEEK4.pptx
SireQuinn
 
PDF
The Constitution Review Committee (CRC) has released an updated schedule for ...
nservice241
 
PDF
Biological Bilingual Glossary Hindi and English Medium
World of Wisdom
 
PPT
Talk on Critical Theory, Part II, Philosophy of Social Sciences
Soraj Hongladarom
 
PDF
The History of Phone Numbers in Stoke Newington by Billy Thomas
History of Stoke Newington
 
Exploring the Different Types of Experimental Research
Thelma Villaflores
 
Identifying elements in the story. Arrange the events in the story
geraldineamahido2
 
0725.WHITEPAPER-UNIQUEWAYSOFPROTOTYPINGANDUXNOW.pdf
Thomas GIRARD, MA, CDP
 
Stereochemistry-Optical Isomerism in organic compoundsptx
Tarannum Nadaf-Mansuri
 
The Different Types of Non-Experimental Research
Thelma Villaflores
 
Chapter-V-DED-Entrepreneurship: Institutions Facilitating Entrepreneurship
Dayanand Huded
 
How to Convert an Opportunity into a Quotation in Odoo 18 CRM
Celine George
 
QUARTER 1 WEEK 2 PLOT, POV AND CONFLICTS
KynaParas
 
Cultivation practice of Litchi in Nepal.pptx
UmeshTimilsina1
 
HUMAN RESOURCE MANAGEMENT: RECRUITMENT, SELECTION, PLACEMENT, DEPLOYMENT, TRA...
PRADEEP ABOTHU
 
Reconstruct, Restore, Reimagine: New Perspectives on Stoke Newington’s Histor...
History of Stoke Newington
 
Controller Request and Response in Odoo18
Celine George
 
How to Create a PDF Report in Odoo 18 - Odoo Slides
Celine George
 
Universal immunization Programme (UIP).pptx
Vishal Chanalia
 
Stokey: A Jewish Village by Rachel Kolsky
History of Stoke Newington
 
grade 5 lesson matatag ENGLISH 5_Q1_PPT_WEEK4.pptx
SireQuinn
 
The Constitution Review Committee (CRC) has released an updated schedule for ...
nservice241
 
Biological Bilingual Glossary Hindi and English Medium
World of Wisdom
 
Talk on Critical Theory, Part II, Philosophy of Social Sciences
Soraj Hongladarom
 
The History of Phone Numbers in Stoke Newington by Billy Thomas
History of Stoke Newington
 

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: [email protected] ▪ 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: