SlideShare uma empresa Scribd logo
1 de 53
Introduction to Java Programming - internals
Contents ,[object Object],[object Object],[object Object],[object Object]
Contents ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Contents ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
What is Computer Programming?
Define: Computer Programming ,[object Object],Definition by Google
Programming Phases ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],  = Specification   = Design   = Implementation   = Testing & Debugging   = Deployment
Your First Java Program
First Look at Java Code Sample Java Source code: public class HelloJava { public static void main(String args[]) { System.out.println("Hello, Java"); } }
Java Code – How It Works? public class HelloJava { public static void main(String args[]){ System.out.println("Hello, Java"); } } Define a class called " HelloJava " Define the  main()  method – the program entry point Print a text on the console calling the method " println() " of the system's standard output
Java Is Case Sensitive! public class HelloJava { public static void Main(String args[]){ system.out.PrintLn("Hello, Java"); } } The keyword  class  should be lowercase The class  System  should be in  " Pascal Case " The method  println()  should be in  " camel   Case " The correct method name is  main()
Java Code Should Be Well Formatted public class HelloJava { public static void main(String args[])   { System.out.println("Hello, Java"); } } The  {  symbol should be on the same line. The block after the  {  symbol should be indented by a TAB Class names should start with a CAPITAL letter The  {  symbol should be on the same line. The  }  symbol should be under the beginning of the line with corresponding  {
Example of Bad Formatting public  class HelloJava  {public static  void  main(String args[]){ System.out.println ("Hello, Java"); System.out.println("Hello, Java");} } Such formatting makes the code unreadable
File Names Match Class Names! ,[object Object],[object Object],public class HelloJava { public static void main(String args[]){ System.out.println("Hello, Java"); } } HelloJava.java
Your First Java Program Live Demo
Welcome to Java Technology
Why Java? ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
History of Java ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
History of Java ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
What is the Java Technology? ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Java Platform Architecture
The Java Platform Architecture ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Java, JVM and OS
Java 5 Architecture
Java Compilation and Execution public class HelloJava { public static void main(String args[])   { System.out.println( "Hello, Java"); } } HelloJava.java Compilation 0010011101011101110101110101011101110101101101101110101011010101010101010101010101101110100011010000001011010111101101110101001110100110101010101101011111101010111010100101011101010100101001111101101010101110101010001010101001011000101010011101010100110101110110111110101 HelloJava.class Execution
The Java Programming Environment
Architectural Tradeoffs ,[object Object],Platform independence Productivity Execution speed Lowest common subset of features Garbage collection Lack of control of memory management and thread scheduling Dynamic linking Symbolic references Security
Java Platform Editions
Java Platform Editions ,[object Object],[object Object],[object Object],[object Object]
J2SE, J2EE, J2ME ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Java Virtual Machine (JVM)
The Java Virtual Machine ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
The Java Virtual Machine ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Garbage Collection ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
The JVM and Host Operating Systems ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
The JVM and Host Operating Systems
Classes and Class Loaders
Classes and Class Loaders ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Class Loaders Architecture
Class Loaders ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Java Class Files ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Classpath ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
JAR Files ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
JAR Files ,[object Object],[object Object],[object Object],[object Object],jar -cf MyJarArchive.jar *.class jar -xf MyJarArchive.jar *.class
Eclipse Compiling,  R unning and  D ebugging  Java P rograms
Creating New Java Application ,[object Object],[object Object],[object Object],[object Object],[object Object]
Creating New Java Application (2) ,[object Object],[object Object],[object Object],[object Object],[object Object]
[object Object],Creating New Java Application (3)
Compiling Source Code ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Running Programs ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Debugging The Code ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Debugging in Eclipse ,[object Object],[object Object],[object Object],[object Object],[object Object]
Eclipse Compiling,  R unning and  D ebugging  Java P rograms  Live Demo

Mais conteúdo relacionado

Mais procurados

Mais procurados (20)

Methods in java
Methods in javaMethods in java
Methods in java
 
Java Presentation For Syntax
Java Presentation For SyntaxJava Presentation For Syntax
Java Presentation For Syntax
 
Java Programming
Java ProgrammingJava Programming
Java Programming
 
JAVA PPT Part-1 BY ADI.pdf
JAVA PPT Part-1 BY ADI.pdfJAVA PPT Part-1 BY ADI.pdf
JAVA PPT Part-1 BY ADI.pdf
 
File handling
File handlingFile handling
File handling
 
Java Basics
Java BasicsJava Basics
Java Basics
 
Inheritance in java
Inheritance in javaInheritance in java
Inheritance in java
 
Wrapper classes
Wrapper classes Wrapper classes
Wrapper classes
 
Polymorphism in java
Polymorphism in javaPolymorphism in java
Polymorphism in java
 
Java Programming
Java ProgrammingJava Programming
Java Programming
 
Core Java Tutorials by Mahika Tutorials
Core Java Tutorials by Mahika TutorialsCore Java Tutorials by Mahika Tutorials
Core Java Tutorials by Mahika Tutorials
 
Arrays in Java
Arrays in JavaArrays in Java
Arrays in Java
 
Introduction to java
Introduction to java Introduction to java
Introduction to java
 
Interface in java
Interface in javaInterface in java
Interface in java
 
6. static keyword
6. static keyword6. static keyword
6. static keyword
 
This keyword in java
This keyword in javaThis keyword in java
This keyword in java
 
oops concept in java | object oriented programming in java
oops concept in java | object oriented programming in javaoops concept in java | object oriented programming in java
oops concept in java | object oriented programming in java
 
Java program structure
Java program structure Java program structure
Java program structure
 
Arrays in Java
Arrays in Java Arrays in Java
Arrays in Java
 
Introduction to Java
Introduction to Java Introduction to Java
Introduction to Java
 

Destaque (7)

Java
Java Java
Java
 
Palindrome number program in c
Palindrome number program in cPalindrome number program in c
Palindrome number program in c
 
Industrial Training report on java
Industrial  Training report on javaIndustrial  Training report on java
Industrial Training report on java
 
Internship final presentation
Internship final presentationInternship final presentation
Internship final presentation
 
Basic java important interview questions and answers to secure a job
Basic java important interview questions and answers to secure a jobBasic java important interview questions and answers to secure a job
Basic java important interview questions and answers to secure a job
 
Java Ring
Java RingJava Ring
Java Ring
 
Umbrella Branding
Umbrella BrandingUmbrella Branding
Umbrella Branding
 

Semelhante a Java platform (20)

Javalecture 1
Javalecture 1Javalecture 1
Javalecture 1
 
Introduction
IntroductionIntroduction
Introduction
 
Chapter 2.1
Chapter 2.1Chapter 2.1
Chapter 2.1
 
1.introduction to java
1.introduction to java1.introduction to java
1.introduction to java
 
UNIT 1.pptx
UNIT 1.pptxUNIT 1.pptx
UNIT 1.pptx
 
OOPS JAVA.pdf
OOPS JAVA.pdfOOPS JAVA.pdf
OOPS JAVA.pdf
 
INTRODUCTION TO JAVA APPLICATION
INTRODUCTION TO JAVA APPLICATIONINTRODUCTION TO JAVA APPLICATION
INTRODUCTION TO JAVA APPLICATION
 
Fundamentals of oop lecture 2
Fundamentals of oop lecture 2Fundamentals of oop lecture 2
Fundamentals of oop lecture 2
 
Introduction java programming
Introduction java programmingIntroduction java programming
Introduction java programming
 
Programming in Java
Programming in JavaProgramming in Java
Programming in Java
 
Unit of competency
Unit of competencyUnit of competency
Unit of competency
 
Java programming basics
Java programming basicsJava programming basics
Java programming basics
 
01slide
01slide01slide
01slide
 
01slide
01slide01slide
01slide
 
Java1
Java1Java1
Java1
 
Java
Java Java
Java
 
Java introduction
Java introductionJava introduction
Java introduction
 
Manuel - SPR - Intro to Java Language_2016
Manuel - SPR - Intro to Java Language_2016Manuel - SPR - Intro to Java Language_2016
Manuel - SPR - Intro to Java Language_2016
 
JAVA introduction and basic understanding.pptx
JAVA  introduction and basic understanding.pptxJAVA  introduction and basic understanding.pptx
JAVA introduction and basic understanding.pptx
 
java basic for begginers
java basic for begginersjava basic for begginers
java basic for begginers
 

Mais de BG Java EE Course

Java Server Faces (JSF) - advanced
Java Server Faces (JSF) - advancedJava Server Faces (JSF) - advanced
Java Server Faces (JSF) - advanced
BG Java EE Course
 
JavaScript and jQuery Fundamentals
JavaScript and jQuery FundamentalsJavaScript and jQuery Fundamentals
JavaScript and jQuery Fundamentals
BG Java EE Course
 
Creating Web Sites with HTML and CSS
Creating Web Sites with HTML and CSSCreating Web Sites with HTML and CSS
Creating Web Sites with HTML and CSS
BG Java EE Course
 

Mais de BG Java EE Course (20)

Rich faces
Rich facesRich faces
Rich faces
 
JSP Custom Tags
JSP Custom TagsJSP Custom Tags
JSP Custom Tags
 
Java Server Faces (JSF) - advanced
Java Server Faces (JSF) - advancedJava Server Faces (JSF) - advanced
Java Server Faces (JSF) - advanced
 
Java Server Faces (JSF) - Basics
Java Server Faces (JSF) - BasicsJava Server Faces (JSF) - Basics
Java Server Faces (JSF) - Basics
 
JSTL
JSTLJSTL
JSTL
 
Unified Expression Language
Unified Expression LanguageUnified Expression Language
Unified Expression Language
 
Java Server Pages
Java Server PagesJava Server Pages
Java Server Pages
 
Web Applications and Deployment
Web Applications and DeploymentWeb Applications and Deployment
Web Applications and Deployment
 
Java Servlets
Java ServletsJava Servlets
Java Servlets
 
CSS
CSSCSS
CSS
 
HTML: Tables and Forms
HTML: Tables and FormsHTML: Tables and Forms
HTML: Tables and Forms
 
HTML Fundamentals
HTML FundamentalsHTML Fundamentals
HTML Fundamentals
 
WWW and HTTP
WWW and HTTPWWW and HTTP
WWW and HTTP
 
JavaScript and jQuery Fundamentals
JavaScript and jQuery FundamentalsJavaScript and jQuery Fundamentals
JavaScript and jQuery Fundamentals
 
Creating Web Sites with HTML and CSS
Creating Web Sites with HTML and CSSCreating Web Sites with HTML and CSS
Creating Web Sites with HTML and CSS
 
Processing XML with Java
Processing XML with JavaProcessing XML with Java
Processing XML with Java
 
Introduction to XML
Introduction to XMLIntroduction to XML
Introduction to XML
 
Data Access with JDBC
Data Access with JDBCData Access with JDBC
Data Access with JDBC
 
Introduction to-sql
Introduction to-sqlIntroduction to-sql
Introduction to-sql
 
Introduction to-RDBMS-systems
Introduction to-RDBMS-systemsIntroduction to-RDBMS-systems
Introduction to-RDBMS-systems
 

Último

Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Safe Software
 
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Victor Rentea
 
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
?#DUbAI#??##{{(☎️+971_581248768%)**%*]'#abortion pills for sale in dubai@
 

Último (20)

Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
 
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
 
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...
 
Introduction to Multilingual Retrieval Augmented Generation (RAG)
Introduction to Multilingual Retrieval Augmented Generation (RAG)Introduction to Multilingual Retrieval Augmented Generation (RAG)
Introduction to Multilingual Retrieval Augmented Generation (RAG)
 
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
 
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWEREMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
 
MS Copilot expands with MS Graph connectors
MS Copilot expands with MS Graph connectorsMS Copilot expands with MS Graph connectors
MS Copilot expands with MS Graph connectors
 
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
 
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
 
Artificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : UncertaintyArtificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : Uncertainty
 
Vector Search -An Introduction in Oracle Database 23ai.pptx
Vector Search -An Introduction in Oracle Database 23ai.pptxVector Search -An Introduction in Oracle Database 23ai.pptx
Vector Search -An Introduction in Oracle Database 23ai.pptx
 
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost SavingRepurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
 
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
 
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
DBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor PresentationDBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor Presentation
 
CNIC Information System with Pakdata Cf In Pakistan
CNIC Information System with Pakdata Cf In PakistanCNIC Information System with Pakdata Cf In Pakistan
CNIC Information System with Pakdata Cf In Pakistan
 
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ..."I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
 

Java platform

  • 1. Introduction to Java Programming - internals
  • 2.
  • 3.
  • 4.
  • 5. What is Computer Programming?
  • 6.
  • 7.
  • 8. Your First Java Program
  • 9. First Look at Java Code Sample Java Source code: public class HelloJava { public static void main(String args[]) { System.out.println("Hello, Java"); } }
  • 10. Java Code – How It Works? public class HelloJava { public static void main(String args[]){ System.out.println("Hello, Java"); } } Define a class called " HelloJava " Define the main() method – the program entry point Print a text on the console calling the method " println() " of the system's standard output
  • 11. Java Is Case Sensitive! public class HelloJava { public static void Main(String args[]){ system.out.PrintLn("Hello, Java"); } } The keyword class should be lowercase The class System should be in " Pascal Case " The method println() should be in " camel Case " The correct method name is main()
  • 12. Java Code Should Be Well Formatted public class HelloJava { public static void main(String args[]) { System.out.println("Hello, Java"); } } The { symbol should be on the same line. The block after the { symbol should be indented by a TAB Class names should start with a CAPITAL letter The { symbol should be on the same line. The } symbol should be under the beginning of the line with corresponding {
  • 13. Example of Bad Formatting public class HelloJava {public static void main(String args[]){ System.out.println ("Hello, Java"); System.out.println("Hello, Java");} } Such formatting makes the code unreadable
  • 14.
  • 15. Your First Java Program Live Demo
  • 16. Welcome to Java Technology
  • 17.
  • 18.
  • 19.
  • 20.
  • 22.
  • 25. Java Compilation and Execution public class HelloJava { public static void main(String args[]) { System.out.println( "Hello, Java"); } } HelloJava.java Compilation 0010011101011101110101110101011101110101101101101110101011010101010101010101010101101110100011010000001011010111101101110101001110100110101010101101011111101010111010100101011101010100101001111101101010101110101010001010101001011000101010011101010100110101110110111110101 HelloJava.class Execution
  • 26. The Java Programming Environment
  • 27.
  • 29.
  • 30.
  • 32.
  • 33.
  • 34.
  • 35.
  • 36. The JVM and Host Operating Systems
  • 37. Classes and Class Loaders
  • 38.
  • 40.
  • 41.
  • 42.
  • 43.
  • 44.
  • 45. Eclipse Compiling, R unning and D ebugging Java P rograms
  • 46.
  • 47.
  • 48.
  • 49.
  • 50.
  • 51.
  • 52.
  • 53. Eclipse Compiling, R unning and D ebugging Java P rograms Live Demo