SlideShare a Scribd company logo
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

What's hot (20)

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

Viewers also liked (20)

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

Similar to Basics of java programming language (20)

Java JDK.docx
Java JDK.docxJava JDK.docx
Java JDK.docx
Bornali Das
 
Java virtual machine
Java virtual machineJava virtual machine
Java virtual machine
baabtra.com - No. 1 supplier of quality freshers
 
Object Oriented Programming-JAVA
Object Oriented Programming-JAVAObject Oriented Programming-JAVA
Object Oriented Programming-JAVA
Home
 
Core java introduction
Core java introductionCore java introduction
Core java introduction
Beenu Gautam
 
UNIT 1.pptx
UNIT 1.pptxUNIT 1.pptx
UNIT 1.pptx
EduclentMegasoftel
 
Introduction java programming
Introduction java programmingIntroduction java programming
Introduction java programming
Nanthini Kempaiyan
 
01. Introduction to programming with java
01. Introduction to programming with java01. Introduction to programming with java
01. Introduction to programming with java
Intro C# Book
 
JAVAPart1_BasicIntroduction.pptx
JAVAPart1_BasicIntroduction.pptxJAVAPart1_BasicIntroduction.pptx
JAVAPart1_BasicIntroduction.pptx
Murugesh33
 
JAVA_Day1_BasicIntroduction.pptx
JAVA_Day1_BasicIntroduction.pptxJAVA_Day1_BasicIntroduction.pptx
JAVA_Day1_BasicIntroduction.pptx
Murugesh33
 
Java Memory Descreption
Java Memory DescreptionJava Memory Descreption
Java Memory Descreption
shohan_slideshare
 
Java basic
Java basicJava basic
Java basic
Arati Gadgil
 
Lecture java variable , data type, token
Lecture java variable , data type, tokenLecture java variable , data type, token
Lecture java variable , data type, token
ChandrashekharSingh859453
 
Top 10 Important Core Java Interview questions and answers.pdf
Top 10 Important Core Java Interview questions and answers.pdfTop 10 Important Core Java Interview questions and answers.pdf
Top 10 Important Core Java Interview questions and answers.pdf
Umesh Kumar
 
Java basics
Java basicsJava basics
Java basics
sagsharma
 
1._Java_Fundamental.pptx.pdf
1._Java_Fundamental.pptx.pdf1._Java_Fundamental.pptx.pdf
1._Java_Fundamental.pptx.pdf
luxasuhi
 
Java
JavaJava
Java
Zeeshan Khan
 
java intro.pptx
java intro.pptxjava intro.pptx
java intro.pptx
MangaiyarkarasiDurai
 
Object Oriented Programming Part 1 of Unit 1
Object Oriented Programming Part 1 of Unit 1Object Oriented Programming Part 1 of Unit 1
Object Oriented Programming Part 1 of Unit 1
VigneshkumarPonnusam1
 
What is Java? Presentation On Introduction To Core Java By PSK Technologies
What is Java? Presentation On Introduction To Core Java By PSK TechnologiesWhat is Java? Presentation On Introduction To Core Java By PSK Technologies
What is Java? Presentation On Introduction To Core Java By PSK Technologies
PSK Technolgies Pvt. Ltd. IT Company Nagpur
 
Java platform
Java platformJava platform
Java platform
BG Java EE Course
 
Ad

Recently uploaded (20)

Road safety presentation for high school
Road safety presentation for high schoolRoad safety presentation for high school
Road safety presentation for high school
nikhithavarghese77
 
Presentation SoftwareNOTES AND USES..pdf
Presentation SoftwareNOTES AND USES..pdfPresentation SoftwareNOTES AND USES..pdf
Presentation SoftwareNOTES AND USES..pdf
bathyates
 
DLD Bounas Assignment IOT.pdf by nouman saleem
DLD Bounas Assignment IOT.pdf by nouman saleemDLD Bounas Assignment IOT.pdf by nouman saleem
DLD Bounas Assignment IOT.pdf by nouman saleem
noumansaleempc
 
3d. Alejandra Jimenz Rosales - Session 3 pitch.pdf
3d. Alejandra Jimenz Rosales - Session 3 pitch.pdf3d. Alejandra Jimenz Rosales - Session 3 pitch.pdf
3d. Alejandra Jimenz Rosales - Session 3 pitch.pdf
Dutch Power
 
Sample work (PL Product Research) Joseph_Juntilla.pdf
Sample work (PL Product Research) Joseph_Juntilla.pdfSample work (PL Product Research) Joseph_Juntilla.pdf
Sample work (PL Product Research) Joseph_Juntilla.pdf
Joseph Juntilla
 
Food Truck Business Plan | Sakthi Sundar.pptx
Food Truck Business Plan | Sakthi Sundar.pptxFood Truck Business Plan | Sakthi Sundar.pptx
Food Truck Business Plan | Sakthi Sundar.pptx
Sakthi Sundar
 
From Idea to Impact: Maximizing Your Hackathon Performance
From Idea to Impact: Maximizing Your Hackathon PerformanceFrom Idea to Impact: Maximizing Your Hackathon Performance
From Idea to Impact: Maximizing Your Hackathon Performance
outsystemspuneusergr
 
3b. Jur Erbrink - session 3 pitch.pdf Presentatie CIRED Voorbereidingsdag
3b. Jur Erbrink - session 3 pitch.pdf Presentatie CIRED Voorbereidingsdag3b. Jur Erbrink - session 3 pitch.pdf Presentatie CIRED Voorbereidingsdag
3b. Jur Erbrink - session 3 pitch.pdf Presentatie CIRED Voorbereidingsdag
Dutch Power
 
Pentecost Sunday A Promise of Power.pptx
Pentecost Sunday A Promise of Power.pptxPentecost Sunday A Promise of Power.pptx
Pentecost Sunday A Promise of Power.pptx
FamilyWorshipCenterD
 
3A. Alain Stuivenvolt - session 3 pitch.pdf
3A. Alain Stuivenvolt - session 3 pitch.pdf3A. Alain Stuivenvolt - session 3 pitch.pdf
3A. Alain Stuivenvolt - session 3 pitch.pdf
Dutch Power
 
1. Martin Binnendijk - Rory Leich - Daniel Woldendorp - Session 1.pdf
1. Martin Binnendijk - Rory Leich - Daniel Woldendorp - Session 1.pdf1. Martin Binnendijk - Rory Leich - Daniel Woldendorp - Session 1.pdf
1. Martin Binnendijk - Rory Leich - Daniel Woldendorp - Session 1.pdf
Dutch Power
 
Jadual Waktu dan Jadual Bertugas kelas.pptx
Jadual Waktu dan Jadual Bertugas kelas.pptxJadual Waktu dan Jadual Bertugas kelas.pptx
Jadual Waktu dan Jadual Bertugas kelas.pptx
roslan17
 
Timothy J. Los, JD, LL.M. (Tax) – Global Investor, Family Office & Profession...
Timothy J. Los, JD, LL.M. (Tax) – Global Investor, Family Office & Profession...Timothy J. Los, JD, LL.M. (Tax) – Global Investor, Family Office & Profession...
Timothy J. Los, JD, LL.M. (Tax) – Global Investor, Family Office & Profession...
Timothy Los
 
THE INTERIOR REVIEW MEDIA KIT - THE INTERIOR REVIEW
THE INTERIOR REVIEW MEDIA KIT - THE INTERIOR REVIEWTHE INTERIOR REVIEW MEDIA KIT - THE INTERIOR REVIEW
THE INTERIOR REVIEW MEDIA KIT - THE INTERIOR REVIEW
rspyamin
 
Retail Store Scavenger Hunt experience!!
Retail Store Scavenger Hunt experience!!Retail Store Scavenger Hunt experience!!
Retail Store Scavenger Hunt experience!!
Samally Dávila
 
Streamline English Destinations.pdf for ev
Streamline English Destinations.pdf for evStreamline English Destinations.pdf for ev
Streamline English Destinations.pdf for ev
PhuongNguyen180931
 
Diddy Baby oil making tutorial (natural ingresients.pptx
Diddy Baby oil making tutorial (natural ingresients.pptxDiddy Baby oil making tutorial (natural ingresients.pptx
Diddy Baby oil making tutorial (natural ingresients.pptx
RanitMal
 
presentacion de Inspire Power Point.pptx
presentacion de Inspire Power Point.pptxpresentacion de Inspire Power Point.pptx
presentacion de Inspire Power Point.pptx
teamspro
 
Seminar Presented by Natnael Dechasa Title: Brain Cheat Codes: The Science-Ba...
Seminar Presented by Natnael Dechasa Title: Brain Cheat Codes: The Science-Ba...Seminar Presented by Natnael Dechasa Title: Brain Cheat Codes: The Science-Ba...
Seminar Presented by Natnael Dechasa Title: Brain Cheat Codes: The Science-Ba...
Nati1986
 
2025-06-08 Abraham 02 (shared slides).pptx
2025-06-08 Abraham 02 (shared slides).pptx2025-06-08 Abraham 02 (shared slides).pptx
2025-06-08 Abraham 02 (shared slides).pptx
Dale Wells
 
Road safety presentation for high school
Road safety presentation for high schoolRoad safety presentation for high school
Road safety presentation for high school
nikhithavarghese77
 
Presentation SoftwareNOTES AND USES..pdf
Presentation SoftwareNOTES AND USES..pdfPresentation SoftwareNOTES AND USES..pdf
Presentation SoftwareNOTES AND USES..pdf
bathyates
 
DLD Bounas Assignment IOT.pdf by nouman saleem
DLD Bounas Assignment IOT.pdf by nouman saleemDLD Bounas Assignment IOT.pdf by nouman saleem
DLD Bounas Assignment IOT.pdf by nouman saleem
noumansaleempc
 
3d. Alejandra Jimenz Rosales - Session 3 pitch.pdf
3d. Alejandra Jimenz Rosales - Session 3 pitch.pdf3d. Alejandra Jimenz Rosales - Session 3 pitch.pdf
3d. Alejandra Jimenz Rosales - Session 3 pitch.pdf
Dutch Power
 
Sample work (PL Product Research) Joseph_Juntilla.pdf
Sample work (PL Product Research) Joseph_Juntilla.pdfSample work (PL Product Research) Joseph_Juntilla.pdf
Sample work (PL Product Research) Joseph_Juntilla.pdf
Joseph Juntilla
 
Food Truck Business Plan | Sakthi Sundar.pptx
Food Truck Business Plan | Sakthi Sundar.pptxFood Truck Business Plan | Sakthi Sundar.pptx
Food Truck Business Plan | Sakthi Sundar.pptx
Sakthi Sundar
 
From Idea to Impact: Maximizing Your Hackathon Performance
From Idea to Impact: Maximizing Your Hackathon PerformanceFrom Idea to Impact: Maximizing Your Hackathon Performance
From Idea to Impact: Maximizing Your Hackathon Performance
outsystemspuneusergr
 
3b. Jur Erbrink - session 3 pitch.pdf Presentatie CIRED Voorbereidingsdag
3b. Jur Erbrink - session 3 pitch.pdf Presentatie CIRED Voorbereidingsdag3b. Jur Erbrink - session 3 pitch.pdf Presentatie CIRED Voorbereidingsdag
3b. Jur Erbrink - session 3 pitch.pdf Presentatie CIRED Voorbereidingsdag
Dutch Power
 
Pentecost Sunday A Promise of Power.pptx
Pentecost Sunday A Promise of Power.pptxPentecost Sunday A Promise of Power.pptx
Pentecost Sunday A Promise of Power.pptx
FamilyWorshipCenterD
 
3A. Alain Stuivenvolt - session 3 pitch.pdf
3A. Alain Stuivenvolt - session 3 pitch.pdf3A. Alain Stuivenvolt - session 3 pitch.pdf
3A. Alain Stuivenvolt - session 3 pitch.pdf
Dutch Power
 
1. Martin Binnendijk - Rory Leich - Daniel Woldendorp - Session 1.pdf
1. Martin Binnendijk - Rory Leich - Daniel Woldendorp - Session 1.pdf1. Martin Binnendijk - Rory Leich - Daniel Woldendorp - Session 1.pdf
1. Martin Binnendijk - Rory Leich - Daniel Woldendorp - Session 1.pdf
Dutch Power
 
Jadual Waktu dan Jadual Bertugas kelas.pptx
Jadual Waktu dan Jadual Bertugas kelas.pptxJadual Waktu dan Jadual Bertugas kelas.pptx
Jadual Waktu dan Jadual Bertugas kelas.pptx
roslan17
 
Timothy J. Los, JD, LL.M. (Tax) – Global Investor, Family Office & Profession...
Timothy J. Los, JD, LL.M. (Tax) – Global Investor, Family Office & Profession...Timothy J. Los, JD, LL.M. (Tax) – Global Investor, Family Office & Profession...
Timothy J. Los, JD, LL.M. (Tax) – Global Investor, Family Office & Profession...
Timothy Los
 
THE INTERIOR REVIEW MEDIA KIT - THE INTERIOR REVIEW
THE INTERIOR REVIEW MEDIA KIT - THE INTERIOR REVIEWTHE INTERIOR REVIEW MEDIA KIT - THE INTERIOR REVIEW
THE INTERIOR REVIEW MEDIA KIT - THE INTERIOR REVIEW
rspyamin
 
Retail Store Scavenger Hunt experience!!
Retail Store Scavenger Hunt experience!!Retail Store Scavenger Hunt experience!!
Retail Store Scavenger Hunt experience!!
Samally Dávila
 
Streamline English Destinations.pdf for ev
Streamline English Destinations.pdf for evStreamline English Destinations.pdf for ev
Streamline English Destinations.pdf for ev
PhuongNguyen180931
 
Diddy Baby oil making tutorial (natural ingresients.pptx
Diddy Baby oil making tutorial (natural ingresients.pptxDiddy Baby oil making tutorial (natural ingresients.pptx
Diddy Baby oil making tutorial (natural ingresients.pptx
RanitMal
 
presentacion de Inspire Power Point.pptx
presentacion de Inspire Power Point.pptxpresentacion de Inspire Power Point.pptx
presentacion de Inspire Power Point.pptx
teamspro
 
Seminar Presented by Natnael Dechasa Title: Brain Cheat Codes: The Science-Ba...
Seminar Presented by Natnael Dechasa Title: Brain Cheat Codes: The Science-Ba...Seminar Presented by Natnael Dechasa Title: Brain Cheat Codes: The Science-Ba...
Seminar Presented by Natnael Dechasa Title: Brain Cheat Codes: The Science-Ba...
Nati1986
 
2025-06-08 Abraham 02 (shared slides).pptx
2025-06-08 Abraham 02 (shared slides).pptx2025-06-08 Abraham 02 (shared slides).pptx
2025-06-08 Abraham 02 (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