SlideShare a Scribd company logo
2
Most read
3
Most read
4
Most read
Basics of JavaBasics of Java
Programming LanguageProgramming Language
@Masudul Hasan@Masudul Hasan
Email:masud33_bd@yahoo.comEmail:masud33_bd@yahoo.com
A presentation with the diagramA presentation with the diagram
explaining the difference types ofexplaining the difference types of
important Java topicsimportant Java topics
 Java fileJava file
 Class fileClass file
 BytecodeBytecode
 JarJar
 JvmJvm
 JdkJdk
 JreJre
 Heap memoryHeap memory
 PermgenPermgen
 ThreadThread
 JdkJdk
 JreJre
 Heap memoryHeap memory
 PermgenPermgen
 ThreadThread
Definition of Java file, Class file, Bytecode andDefinition of Java file, Class file, Bytecode and
JARJAR
 Java file: A java file is a text file or source code file written in javaJava file: A java file is a text file or source code file written in java
programming language that contains one or more class definitions. Theprogramming language that contains one or more class definitions. The
java compiler requires that a source file use thejava compiler requires that a source file use the .java.java filenamefilename
extension which is four character long. If a source file has more than oneextension which is four character long. If a source file has more than one
class, each class is compiled into a separate class file.class, each class is compiled into a separate class file.
 Class file: Java class file is a file (with the .class filename extension)Class file: Java class file is a file (with the .class filename extension)
containing a Java bytecode which can be executed on the Java Virtualcontaining a Java bytecode which can be executed on the Java Virtual
Machine (JVM).Machine (JVM).
 Bytecode: Bytecode is a highly optimized set of instructions designedBytecode: Bytecode is a highly optimized set of instructions designed
to be executed by the Java run-time system, which is called Java Virtualto be executed by the Java run-time system, which is called Java Virtual
Machine (JVM) .Machine (JVM) .
 JAR (Java ARchive) :  JAR is a package file format typically used toJAR (Java ARchive) :  JAR is a package file format typically used to
aggregate many Java class files and associated metadata andaggregate many Java class files and associated metadata and
resources (text, images, etc.) into one file to distribute applicationresources (text, images, etc.) into one file to distribute application
software or libraries on the Java platform.software or libraries on the Java platform.
Relationship among JVM, JDK, JRERelationship among JVM, JDK, JRE
 JVM (Java Virtual Machine)JVM (Java Virtual Machine)
-- JVM is an interpreter for bytecodeJVM is an interpreter for bytecode
- Run the byte codeRun the byte code
- Makes java platform independentMakes java platform independent
- Handles memory managementHandles memory management
 JDK (Java Development Kit): It provides all the needed support forJDK (Java Development Kit): It provides all the needed support for
software development in java.software development in java.
 JRE (Java Runtime Environment): Java standard class librariesJRE (Java Runtime Environment): Java standard class libraries
which provide API (Application Programming Interface) and JVMwhich provide API (Application Programming Interface) and JVM
(Java Virtual Machine) together form JRE.(Java Virtual Machine) together form JRE.
Relationship among Java file, Class file, Bytecode,Relationship among Java file, Class file, Bytecode,
JVM and JRE(JVM+library classes)JVM and JRE(JVM+library classes)
Relationship among JDK, JRE, JVMRelationship among JDK, JRE, JVM
by diagramby diagram
Memory BasicsMemory Basics
 Heap memory: When a Java program started Java Virtual MachineHeap memory: When a Java program started Java Virtual Machine
gets some memory from Operating System. Java Virtual Machine orgets some memory from Operating System. Java Virtual Machine or
JVM uses this memory for all its need and part of this memory isJVM uses this memory for all its need and part of this memory is
call call java heap memoryjava heap memory . Heap in Java generally located at bottom. Heap in Java generally located at bottom
of address space and move upwards. whenever we create objectof address space and move upwards. whenever we create object
using new operator or by any another means object is allocatedusing new operator or by any another means object is allocated
memory from Heap and When object dies or garbage collectedmemory from Heap and When object dies or garbage collected
memory goes back to memory goes back to Heap spaceHeap space in Java. in Java.
 Permgen: Perm generation refers to thePermgen: Perm generation refers to the spacespace on the heap whereon the heap where
all the loaded classes are stored. It's exclusively used to store theall the loaded classes are stored. It's exclusively used to store the
class definitions.class definitions.
 Thread: Thread in Java is an independent path of execution which isThread: Thread in Java is an independent path of execution which is
used to run two task in parallel. When two Threads run in parallelused to run two task in parallel. When two Threads run in parallel
that is called multi-threading in Java. that is called multi-threading in Java. 
Screen shot of heapScreen shot of heap of eclipse using JVisualVMof eclipse using JVisualVM
Running threads of eclipse using JVisualVMRunning threads of eclipse using JVisualVM
Screen shot ofScreen shot of CPU, Heap ,Class and Threads ofCPU, Heap ,Class and Threads of
eclipse using JVisualVMeclipse using JVisualVM
ReferencesReferences
[1]:[1]: https://www.youtube.com/watch?v=_MYiF7VBOgYhttps://www.youtube.com/watch?v=_MYiF7VBOgY
[2]: https://www.youtube.com/watch?v=eaAqwTdUAAo[2]: https://www.youtube.com/watch?v=eaAqwTdUAAo

More Related Content

PDF
Basics of java
onewomanmore witl
 
PPTX
Basics of JAVA programming
Elizabeth Thomas
 
PDF
Introduction to java (revised)
Sujit Majety
 
PPTX
Introduction to Java Programming
Saravanakumar R
 
PDF
Java unit 1
Shipra Swati
 
PPTX
1 java programming- introduction
jyoti_lakhani
 
PPTX
Introduction to java
Java Lover
 
PPTX
Introduction to java
Veerabadra Badra
 
Basics of java
onewomanmore witl
 
Basics of JAVA programming
Elizabeth Thomas
 
Introduction to java (revised)
Sujit Majety
 
Introduction to Java Programming
Saravanakumar R
 
Java unit 1
Shipra Swati
 
1 java programming- introduction
jyoti_lakhani
 
Introduction to java
Java Lover
 
Introduction to java
Veerabadra Badra
 

What's hot (20)

DOCX
Introduction to java
jayc8586
 
PDF
Learn Java with Dr. Rifat Shahriyar
Abir Mohammad
 
PPTX
Introduction to java
Sandeep Rawat
 
PDF
Introducing Java 7
Markus Eisele
 
PPTX
Java basic-tutorial for beginners
Muzammil Ali
 
DOCX
Java Tutorial to Learn Java Programming
business Corporate
 
ODP
Introduction To Java.
Tushar Chauhan
 
PPT
Fundamentals of JAVA
KUNAL GADHIA
 
PPTX
Introduction to JAVA
Md. Tanvir Hossain
 
PPT
Chapter 1 introduction to java technology
sshhzap
 
PPT
Java introduction
Sagar Verma
 
PDF
Introduction to java technology
Indika Munaweera Kankanamge
 
PPTX
Core Java
Priyanka Pradhan
 
PPTX
Chapter 1
siragezeynu
 
PDF
Basic java tutorial
Pedro De Almeida
 
PDF
Learn Java Part 1
Gurpreet singh
 
PPT
Java basic introduction
Ideal Eyes Business College
 
PDF
Core Java
Prakash Dimmita
 
PDF
Introduction to Java Programming
Ravi Kant Sahu
 
PDF
Chapter 1. java programming language overview
Jong Soon Bok
 
Introduction to java
jayc8586
 
Learn Java with Dr. Rifat Shahriyar
Abir Mohammad
 
Introduction to java
Sandeep Rawat
 
Introducing Java 7
Markus Eisele
 
Java basic-tutorial for beginners
Muzammil Ali
 
Java Tutorial to Learn Java Programming
business Corporate
 
Introduction To Java.
Tushar Chauhan
 
Fundamentals of JAVA
KUNAL GADHIA
 
Introduction to JAVA
Md. Tanvir Hossain
 
Chapter 1 introduction to java technology
sshhzap
 
Java introduction
Sagar Verma
 
Introduction to java technology
Indika Munaweera Kankanamge
 
Core Java
Priyanka Pradhan
 
Chapter 1
siragezeynu
 
Basic java tutorial
Pedro De Almeida
 
Learn Java Part 1
Gurpreet singh
 
Java basic introduction
Ideal Eyes Business College
 
Core Java
Prakash Dimmita
 
Introduction to Java Programming
Ravi Kant Sahu
 
Chapter 1. java programming language overview
Jong Soon Bok
 
Ad

Viewers also liked (20)

PPT
Aula De Impresso Francisca
molequinha
 
PDF
Algebra 9-klas-malovanij
freegdz
 
PDF
Object oriented principles
onewomanmore witl
 
DOCX
Selenium Basics
onewomanmore witl
 
PDF
Selenium IDE features
onewomanmore witl
 
PDF
Refresh software testing concepts
onewomanmore witl
 
PPT
Networking & Socket Programming In Java
Ankur Agrawal
 
PPTX
Socket programming in Java (PPTX)
UC San Diego
 
PPTX
Network Socket Programming with JAVA
Dudy Ali
 
PPT
Sockets
sivindia
 
PDF
Java networking programs - theory
Mukesh Tekwani
 
PPT
Programming with Java: the Basics
Jussi Pohjolainen
 
PPT
Java Basics
Rajkattamuri
 
PDF
Java Course 3: OOP
Anton Keks
 
PPT
Java Basics
Brandon Black
 
PPT
PALASH SL GUPTA
PALASH GUPTA
 
PDF
Java basics notes
poonguzhali1826
 
PDF
Introduction to basics of java
vinay arora
 
PPTX
Basics of java 2
Raghu nath
 
PDF
Java Course 2: Basics
Anton Keks
 
Aula De Impresso Francisca
molequinha
 
Algebra 9-klas-malovanij
freegdz
 
Object oriented principles
onewomanmore witl
 
Selenium Basics
onewomanmore witl
 
Selenium IDE features
onewomanmore witl
 
Refresh software testing concepts
onewomanmore witl
 
Networking & Socket Programming In Java
Ankur Agrawal
 
Socket programming in Java (PPTX)
UC San Diego
 
Network Socket Programming with JAVA
Dudy Ali
 
Sockets
sivindia
 
Java networking programs - theory
Mukesh Tekwani
 
Programming with Java: the Basics
Jussi Pohjolainen
 
Java Basics
Rajkattamuri
 
Java Course 3: OOP
Anton Keks
 
Java Basics
Brandon Black
 
PALASH SL GUPTA
PALASH GUPTA
 
Java basics notes
poonguzhali1826
 
Introduction to basics of java
vinay arora
 
Basics of java 2
Raghu nath
 
Java Course 2: Basics
Anton Keks
 
Ad

Similar to Basics of java programming language (20)

DOCX
Java JDK.docx
Bornali Das
 
PPTX
JAVA AND OOPS CONCEPTS.pptx helpful for engineering
PriyanshuGupta101797
 
PPTX
Java Virtual Machine (JVM), Difference JDK, JRE & JVM
shamnasain
 
PPT
Java Intro
Vijay A Raj
 
PDF
Internal working JVM
ShubhamGupta345141
 
PPTX
Java-1st.pptx about Java technology before oops
buvanabala
 
PDF
Java - At a glance
Nitish Baranwal
 
PPTX
How to run java program without IDE
Shweta Oza
 
PDF
An Introduction to Java Compiler and Runtime
Omar Bashir
 
PPTX
Java basics
sagsharma
 
PDF
JAVA Program Examples
Prof Chethan Raj C
 
PPTX
Java virtual machine
Nikhil Sharma
 
PDF
Basic Java Programming
Math-Circle
 
PDF
College Project - Java Disassembler - Description
Ganesh Samarthyam
 
PPTX
Manuel - SPR - Intro to Java Language_2016
Manuel Fomitescu
 
PPTX
Java byte code & virtual machine
Laxman Puri
 
PPTX
What is java
SoftCrayons Tech Solutions
 
DOCX
Java interview questions and answers for cognizant By Data Council Pune
Pankaj kshirsagar
 
PDF
JVM, JRE and Javac are the main part for the java program
siyaram ray
 
Java JDK.docx
Bornali Das
 
JAVA AND OOPS CONCEPTS.pptx helpful for engineering
PriyanshuGupta101797
 
Java Virtual Machine (JVM), Difference JDK, JRE & JVM
shamnasain
 
Java Intro
Vijay A Raj
 
Internal working JVM
ShubhamGupta345141
 
Java-1st.pptx about Java technology before oops
buvanabala
 
Java - At a glance
Nitish Baranwal
 
How to run java program without IDE
Shweta Oza
 
An Introduction to Java Compiler and Runtime
Omar Bashir
 
Java basics
sagsharma
 
JAVA Program Examples
Prof Chethan Raj C
 
Java virtual machine
Nikhil Sharma
 
Basic Java Programming
Math-Circle
 
College Project - Java Disassembler - Description
Ganesh Samarthyam
 
Manuel - SPR - Intro to Java Language_2016
Manuel Fomitescu
 
Java byte code & virtual machine
Laxman Puri
 
Java interview questions and answers for cognizant By Data Council Pune
Pankaj kshirsagar
 
JVM, JRE and Javac are the main part for the java program
siyaram ray
 

Recently uploaded (20)

PPTX
Selecting relevant value chain/s for Impactful Development Policies
Francois Stepman
 
PPTX
PHILIPPINE LITERATURE DURING SPANISH ERA
AllizaJoyMendigoria
 
PPTX
GAMABA AWARDEES GINAW BILOG AND SALINTA MONON BY REYMART
purezagambala458
 
PPTX
Cohort Study_PPT.group presentation_pdf.pptx
fatemakhan242
 
PPTX
DARKWEB Deepweb what to do or not ?.pptx
prembasnet12
 
PPTX
AMFI - Investor Awareness Presentation.pptx
ssuser89d308
 
PPTX
Introductions to artificial intelligence
rakshjain77
 
PPTX
Ocean_and_Freshwater_Awareness_Presentation.pptx
Suhaira9
 
PPTX
DPIC Assingment_1.pptx.pptx for presentation
yashwork2607
 
PPT
strucure of protein geomics for new .ppt
RakeshKumar508211
 
PPTX
Describing the Organization's General Environment Identifying the Most Impact...
auntorkhastagirpujan
 
PPTX
Joy And Peace In All Circumstances.pptx
FamilyWorshipCenterD
 
PPTX
Iconic Destinations in India: Explore Heritage and Beauty
dhorashankar
 
PDF
Enhancing Bambara Groundnut Production Through Improved Agronomic Practices
Francois Stepman
 
PDF
Green Natural Green House Presentation (2).pdf
SaeedOsman6
 
PDF
protein structure and function for basics .pdf
RakeshKumar508211
 
PPTX
garment-industry in bangladesh. how bangladeshi industry is doing
tanvirhossain1570
 
DOCX
Policies & Procedures of Internal Audit Department of Shelter Holding LLC.docx
AlamGir100
 
PPTX
Public Speakingbjdsbkjfdkjdasnlkdasnlknadslnbsjknsakjscbnkjbncs.pptx
ranazunairriaz1
 
PPTX
2025-07-27 Abraham 09 (shared slides).pptx
Dale Wells
 
Selecting relevant value chain/s for Impactful Development Policies
Francois Stepman
 
PHILIPPINE LITERATURE DURING SPANISH ERA
AllizaJoyMendigoria
 
GAMABA AWARDEES GINAW BILOG AND SALINTA MONON BY REYMART
purezagambala458
 
Cohort Study_PPT.group presentation_pdf.pptx
fatemakhan242
 
DARKWEB Deepweb what to do or not ?.pptx
prembasnet12
 
AMFI - Investor Awareness Presentation.pptx
ssuser89d308
 
Introductions to artificial intelligence
rakshjain77
 
Ocean_and_Freshwater_Awareness_Presentation.pptx
Suhaira9
 
DPIC Assingment_1.pptx.pptx for presentation
yashwork2607
 
strucure of protein geomics for new .ppt
RakeshKumar508211
 
Describing the Organization's General Environment Identifying the Most Impact...
auntorkhastagirpujan
 
Joy And Peace In All Circumstances.pptx
FamilyWorshipCenterD
 
Iconic Destinations in India: Explore Heritage and Beauty
dhorashankar
 
Enhancing Bambara Groundnut Production Through Improved Agronomic Practices
Francois Stepman
 
Green Natural Green House Presentation (2).pdf
SaeedOsman6
 
protein structure and function for basics .pdf
RakeshKumar508211
 
garment-industry in bangladesh. how bangladeshi industry is doing
tanvirhossain1570
 
Policies & Procedures of Internal Audit Department of Shelter Holding LLC.docx
AlamGir100
 
Public Speakingbjdsbkjfdkjdasnlkdasnlknadslnbsjknsakjscbnkjbncs.pptx
ranazunairriaz1
 
2025-07-27 Abraham 09 (shared slides).pptx
Dale Wells
 

Basics of java programming language

  • 1. Basics of JavaBasics of Java Programming LanguageProgramming Language @Masudul Hasan@Masudul Hasan Email:[email protected]:[email protected]
  • 2. A presentation with the diagramA presentation with the diagram explaining the difference types ofexplaining the difference types of important Java topicsimportant Java topics  Java fileJava file  Class fileClass file  BytecodeBytecode  JarJar  JvmJvm  JdkJdk  JreJre  Heap memoryHeap memory  PermgenPermgen  ThreadThread  JdkJdk  JreJre  Heap memoryHeap memory  PermgenPermgen  ThreadThread
  • 3. Definition of Java file, Class file, Bytecode andDefinition of Java file, Class file, Bytecode and JARJAR  Java file: A java file is a text file or source code file written in javaJava file: A java file is a text file or source code file written in java programming language that contains one or more class definitions. Theprogramming language that contains one or more class definitions. The java compiler requires that a source file use thejava compiler requires that a source file use the .java.java filenamefilename extension which is four character long. If a source file has more than oneextension which is four character long. If a source file has more than one class, each class is compiled into a separate class file.class, each class is compiled into a separate class file.  Class file: Java class file is a file (with the .class filename extension)Class file: Java class file is a file (with the .class filename extension) containing a Java bytecode which can be executed on the Java Virtualcontaining a Java bytecode which can be executed on the Java Virtual Machine (JVM).Machine (JVM).  Bytecode: Bytecode is a highly optimized set of instructions designedBytecode: Bytecode is a highly optimized set of instructions designed to be executed by the Java run-time system, which is called Java Virtualto be executed by the Java run-time system, which is called Java Virtual Machine (JVM) .Machine (JVM) .  JAR (Java ARchive) :  JAR is a package file format typically used toJAR (Java ARchive) :  JAR is a package file format typically used to aggregate many Java class files and associated metadata andaggregate many Java class files and associated metadata and resources (text, images, etc.) into one file to distribute applicationresources (text, images, etc.) into one file to distribute application software or libraries on the Java platform.software or libraries on the Java platform.
  • 4. Relationship among JVM, JDK, JRERelationship among JVM, JDK, JRE  JVM (Java Virtual Machine)JVM (Java Virtual Machine) -- JVM is an interpreter for bytecodeJVM is an interpreter for bytecode - Run the byte codeRun the byte code - Makes java platform independentMakes java platform independent - Handles memory managementHandles memory management  JDK (Java Development Kit): It provides all the needed support forJDK (Java Development Kit): It provides all the needed support for software development in java.software development in java.  JRE (Java Runtime Environment): Java standard class librariesJRE (Java Runtime Environment): Java standard class libraries which provide API (Application Programming Interface) and JVMwhich provide API (Application Programming Interface) and JVM (Java Virtual Machine) together form JRE.(Java Virtual Machine) together form JRE.
  • 5. Relationship among Java file, Class file, Bytecode,Relationship among Java file, Class file, Bytecode, JVM and JRE(JVM+library classes)JVM and JRE(JVM+library classes)
  • 6. Relationship among JDK, JRE, JVMRelationship among JDK, JRE, JVM by diagramby diagram
  • 7. Memory BasicsMemory Basics  Heap memory: When a Java program started Java Virtual MachineHeap memory: When a Java program started Java Virtual Machine gets some memory from Operating System. Java Virtual Machine orgets some memory from Operating System. Java Virtual Machine or JVM uses this memory for all its need and part of this memory isJVM uses this memory for all its need and part of this memory is call call java heap memoryjava heap memory . Heap in Java generally located at bottom. Heap in Java generally located at bottom of address space and move upwards. whenever we create objectof address space and move upwards. whenever we create object using new operator or by any another means object is allocatedusing new operator or by any another means object is allocated memory from Heap and When object dies or garbage collectedmemory from Heap and When object dies or garbage collected memory goes back to memory goes back to Heap spaceHeap space in Java. in Java.  Permgen: Perm generation refers to thePermgen: Perm generation refers to the spacespace on the heap whereon the heap where all the loaded classes are stored. It's exclusively used to store theall the loaded classes are stored. It's exclusively used to store the class definitions.class definitions.  Thread: Thread in Java is an independent path of execution which isThread: Thread in Java is an independent path of execution which is used to run two task in parallel. When two Threads run in parallelused to run two task in parallel. When two Threads run in parallel that is called multi-threading in Java. that is called multi-threading in Java. 
  • 8. Screen shot of heapScreen shot of heap of eclipse using JVisualVMof eclipse using JVisualVM
  • 9. Running threads of eclipse using JVisualVMRunning threads of eclipse using JVisualVM
  • 10. Screen shot ofScreen shot of CPU, Heap ,Class and Threads ofCPU, Heap ,Class and Threads of eclipse using JVisualVMeclipse using JVisualVM