SlideShare uma empresa Scribd logo
1 de 19
Baixar para ler offline
What is java?
Java is a programming language and a platform.
"Write once, run anywhere" (WORA), or sometimes “write once, run everywhere”
(WORE), is a slogan created by Sun Microsystems to illustrate the cross-platform
benefits of the Java language.
This language was developed at SUN Microsystems in the year 1995 under the
guidance of James Gosling and team.
Platform: Any hardware or software environment in which a program runs, is
known as a platform. Since Java has its own runtime environment (JRE) and API, it
is called platform.
Features of Java
1- Simple
2- Object-Oriented
3- Platform independent
4- Secured
5- Robust
6- Architecture neutral
7- Portable
8- Dynamic
9- Interpreted
10- High Performance
11- Multithreaded
12- Distributed
Software & tools required
Software & Tools-
1- Linux 7.1 or Windows xp/7/8 operating system
2- Java JDK 8
3- Microsoft Notepad or any other text editor
4- Eclipse or NetBeans .
JVM , JDK & JRE
JVM
● JVM (Java Virtual Machine) is a software.
● It is a specification that provides runtime environment in which java bytecode
can be executed.
● It not physically exists.
● JVMs are not same for all hardware and software,for example for window os
JVM is different and for Linux JVM is different.
● JVM, JRE and JDK are platform dependent because configuration of each OS
differs. But, Java is platform independent.
JRE
● The Java Runtime Environment (JRE) is part of the
Java Development Kit (JDK).
● It contains set of libraries and tools for developing
java application.
● The Java Runtime Environment provides the
minimum requirements for executing a Java
application.
● It physically exists.
● It contains set of libraries + other files that JVM
uses at runtime.
JDK
● The Java Development Kit (JDK) is
primary components.
● It physically exists.
● It is collection of programming tools
and JRE, JVM.
Copy this path and set it as PATH in user
variables
Setting Up of Environment
Environment Setup
1- goto- Control Panel>System
and Security>System.
2- click on Advance System
Settings tab on left sidebar.
3- It will open System Properties
tab and click on Advanced tab.
4- Bottom|Right has
Environment Variable Button,
click on it.
5- Set PATH in User variables
and Set JAVA_HOME in System
variables .
1st
2nd
Where JAVA is used?
● Desktop Applications such as acrobat reader, media player, antivirus etc.
● Web Applications such as irctc.co.in, javatpoint.com etc.
● Enterprise Applications such as banking applications.
● Mobile
● Embedded System
● Smart Card
● Robotics
● Games etc.
Types of JAVA Application
There are mainly 4 type of applications that can be created using java
programming:
1- Standalone Application- Antivirus, Media Player etc.
2- Web Application- JSP, Servlets etc. used to make web application
3- Enterprise Application- JAVA EE at business tier
4- Mobile Application. Android and JAVA ME.
First Program “Hello World”
1- open text editor and write first program
2- Save it as Hello.java
3- Open command prompt or terminal .
4- Go to the file and to compile code write
“javac Hello.java” command.
5- to run “java Hello”.
class Hello {
public static void main (String args[])
{
System.out.println("Hello JAVA");
}
}
Compile and Execute
Class in JAVA
“class is the only logical entity.”
Class: Class is a blueprint which is containing only list of variables and method
and no memory is allocated for them. A class is a group of objects that has
common properties.
A class in java contains:
1- Data Member, 2- Method, 3- Constructor
4- Block, 5- Class and 6- Interface
Object in JAVA
“Object is the physical as well as logical entity.”
Object: Object is an instance of class, object has state and behaviors.
An Object in java has three characteristics:
1- State 2- Behavior 3- Identity
State: Represents data (value) of an object.
Behavior: Represents the behavior (functionality) of an object
Identity: Object identity is typically implemented via a unique ID.
Real Life example of Object and class.
Class: vehicle
Object: car, bus, bike, truck are
object of vehicle class.
State: Color, Model,speed
Behaviour: Travelling
Identity: unique number
“Variable is a name of memory location or name of reserved area allocated in
memory.”
There are three types of variables in java
1- local variable ` 2- instance variable 3- static variable
A variable that is declared inside the
method is called local variable.
A variable that is declared inside the class
but outside the method is called instance
variable . It is not declared as static.
A variable that is declared as static is
called static variable. It cannot be local.
Variables and Datatypes in JAVA
DATA Types
Basically two types of
data type :
Primitive
&
Non-Primitive

Mais conteúdo relacionado

Mais procurados

Introduction to Java Programming Language
Introduction to Java Programming LanguageIntroduction to Java Programming Language
Introduction to Java Programming Language
jaimefrozr
 

Mais procurados (20)

Introduction to java
Introduction to java Introduction to java
Introduction to java
 
Introduction to Basic Java Versions and their features
Introduction to Basic Java Versions and their featuresIntroduction to Basic Java Versions and their features
Introduction to Basic Java Versions and their features
 
JRE , JDK and platform independent nature of JAVA
JRE , JDK and platform independent nature of JAVAJRE , JDK and platform independent nature of JAVA
JRE , JDK and platform independent nature of JAVA
 
Java
JavaJava
Java
 
Fundamentals of JAVA
Fundamentals of JAVAFundamentals of JAVA
Fundamentals of JAVA
 
Introduction to Java Programming Language
Introduction to Java Programming LanguageIntroduction to Java Programming Language
Introduction to Java Programming Language
 
JVM
JVMJVM
JVM
 
Introduction to Java
Introduction to JavaIntroduction to Java
Introduction to Java
 
Introduction To Java.
Introduction To Java.Introduction To Java.
Introduction To Java.
 
Java basic introduction
Java basic introductionJava basic introduction
Java basic introduction
 
Java Introduction
Java IntroductionJava Introduction
Java Introduction
 
Java Programming
Java ProgrammingJava Programming
Java Programming
 
Java Programming for Designers
Java Programming for DesignersJava Programming for Designers
Java Programming for Designers
 
Java Tutorial | Java Programming Tutorial | Java Basics | Java Training | Edu...
Java Tutorial | Java Programming Tutorial | Java Basics | Java Training | Edu...Java Tutorial | Java Programming Tutorial | Java Basics | Java Training | Edu...
Java Tutorial | Java Programming Tutorial | Java Basics | Java Training | Edu...
 
Basic Java Programming
Basic Java ProgrammingBasic Java Programming
Basic Java Programming
 
Introduction to Java Programming, Basic Structure, variables Data type, input...
Introduction to Java Programming, Basic Structure, variables Data type, input...Introduction to Java Programming, Basic Structure, variables Data type, input...
Introduction to Java Programming, Basic Structure, variables Data type, input...
 
Introduction to java
Introduction to javaIntroduction to java
Introduction to java
 
Presentation on Core java
Presentation on Core javaPresentation on Core java
Presentation on Core java
 
Training on Core java | PPT Presentation | Shravan Sanidhya
Training on Core java | PPT Presentation | Shravan SanidhyaTraining on Core java | PPT Presentation | Shravan Sanidhya
Training on Core java | PPT Presentation | Shravan Sanidhya
 
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
 

Destaque

Object Oriented Programming with Java
Object Oriented Programming with JavaObject Oriented Programming with Java
Object Oriented Programming with Java
Jussi Pohjolainen
 

Destaque (13)

Presentacion java
Presentacion javaPresentacion java
Presentacion java
 
Java presentation
Java presentationJava presentation
Java presentation
 
Overview of java web services
Overview of java web servicesOverview of java web services
Overview of java web services
 
Java for the Beginners
Java for the BeginnersJava for the Beginners
Java for the Beginners
 
Media evaluation question 5
Media evaluation question 5Media evaluation question 5
Media evaluation question 5
 
Java seminar
Java seminarJava seminar
Java seminar
 
Intro to java
Intro to javaIntro to java
Intro to java
 
Overview of Java EE 6 by Roberto Chinnici at SFJUG
Overview of Java EE 6 by Roberto Chinnici at SFJUGOverview of Java EE 6 by Roberto Chinnici at SFJUG
Overview of Java EE 6 by Roberto Chinnici at SFJUG
 
Java ppt Gandhi Ravi (gandhiri@gmail.com)
Java ppt  Gandhi Ravi  (gandhiri@gmail.com)Java ppt  Gandhi Ravi  (gandhiri@gmail.com)
Java ppt Gandhi Ravi (gandhiri@gmail.com)
 
Part3
Part3Part3
Part3
 
Presentation on java
Presentation  on  javaPresentation  on  java
Presentation on java
 
Object Oriented Programming with Java
Object Oriented Programming with JavaObject Oriented Programming with Java
Object Oriented Programming with Java
 
Introduction to java
Introduction to javaIntroduction to java
Introduction to java
 

Semelhante a Java presentation

JAVA_Day1_BasicIntroduction.pptx
JAVA_Day1_BasicIntroduction.pptxJAVA_Day1_BasicIntroduction.pptx
JAVA_Day1_BasicIntroduction.pptx
Murugesh33
 
Unit 1 Core Java for Compter Science 3rd
Unit 1 Core Java for Compter Science 3rdUnit 1 Core Java for Compter Science 3rd
Unit 1 Core Java for Compter Science 3rd
prat0ham
 
JavaClassPresentation
JavaClassPresentationJavaClassPresentation
JavaClassPresentation
juliasceasor
 

Semelhante a Java presentation (20)

Java JDK.docx
Java JDK.docxJava JDK.docx
Java JDK.docx
 
Java
JavaJava
Java
 
Basic Java I
Basic Java IBasic Java I
Basic Java I
 
Java programming material for beginners by Nithin, VVCE, Mysuru
Java programming material for beginners by Nithin, VVCE, MysuruJava programming material for beginners by Nithin, VVCE, Mysuru
Java programming material for beginners by Nithin, VVCE, Mysuru
 
Introduction java programming
Introduction java programmingIntroduction java programming
Introduction java programming
 
JAVA_Day1_BasicIntroduction.pptx
JAVA_Day1_BasicIntroduction.pptxJAVA_Day1_BasicIntroduction.pptx
JAVA_Day1_BasicIntroduction.pptx
 
JAVAPart1_BasicIntroduction.pptx
JAVAPart1_BasicIntroduction.pptxJAVAPart1_BasicIntroduction.pptx
JAVAPart1_BasicIntroduction.pptx
 
java slides
java slidesjava slides
java slides
 
Unit 1 Core Java for Compter Science 3rd
Unit 1 Core Java for Compter Science 3rdUnit 1 Core Java for Compter Science 3rd
Unit 1 Core Java for Compter Science 3rd
 
Java essentials for hadoop
Java essentials for hadoopJava essentials for hadoop
Java essentials for hadoop
 
Java essentials for hadoop
Java essentials for hadoopJava essentials for hadoop
Java essentials for hadoop
 
JavaClassPresentation
JavaClassPresentationJavaClassPresentation
JavaClassPresentation
 
Java1
Java1Java1
Java1
 
Java
Java Java
Java
 
oop unit1.pptx
oop unit1.pptxoop unit1.pptx
oop unit1.pptx
 
Introduction to java
Introduction to java Introduction to java
Introduction to java
 
A seminar report on core java
A  seminar report on core javaA  seminar report on core java
A seminar report on core java
 
CS8392 OOP
CS8392 OOPCS8392 OOP
CS8392 OOP
 
Unit1 introduction to Java
Unit1 introduction to JavaUnit1 introduction to Java
Unit1 introduction to Java
 
3. jvm
3. jvm3. jvm
3. jvm
 

Último

TECUNIQUE: Success Stories: IT Service provider
TECUNIQUE: Success Stories: IT Service providerTECUNIQUE: Success Stories: IT Service provider
TECUNIQUE: Success Stories: IT Service provider
mohitmore19
 

Último (20)

Unveiling the Tech Salsa of LAMs with Janus in Real-Time Applications
Unveiling the Tech Salsa of LAMs with Janus in Real-Time ApplicationsUnveiling the Tech Salsa of LAMs with Janus in Real-Time Applications
Unveiling the Tech Salsa of LAMs with Janus in Real-Time Applications
 
Learn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdf
Learn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdfLearn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdf
Learn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdf
 
The Guide to Integrating Generative AI into Unified Continuous Testing Platfo...
The Guide to Integrating Generative AI into Unified Continuous Testing Platfo...The Guide to Integrating Generative AI into Unified Continuous Testing Platfo...
The Guide to Integrating Generative AI into Unified Continuous Testing Platfo...
 
Optimizing AI for immediate response in Smart CCTV
Optimizing AI for immediate response in Smart CCTVOptimizing AI for immediate response in Smart CCTV
Optimizing AI for immediate response in Smart CCTV
 
Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...
Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...
Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...
 
AI & Machine Learning Presentation Template
AI & Machine Learning Presentation TemplateAI & Machine Learning Presentation Template
AI & Machine Learning Presentation Template
 
A Secure and Reliable Document Management System is Essential.docx
A Secure and Reliable Document Management System is Essential.docxA Secure and Reliable Document Management System is Essential.docx
A Secure and Reliable Document Management System is Essential.docx
 
Direct Style Effect Systems - The Print[A] Example - A Comprehension Aid
Direct Style Effect Systems -The Print[A] Example- A Comprehension AidDirect Style Effect Systems -The Print[A] Example- A Comprehension Aid
Direct Style Effect Systems - The Print[A] Example - A Comprehension Aid
 
Reassessing the Bedrock of Clinical Function Models: An Examination of Large ...
Reassessing the Bedrock of Clinical Function Models: An Examination of Large ...Reassessing the Bedrock of Clinical Function Models: An Examination of Large ...
Reassessing the Bedrock of Clinical Function Models: An Examination of Large ...
 
TECUNIQUE: Success Stories: IT Service provider
TECUNIQUE: Success Stories: IT Service providerTECUNIQUE: Success Stories: IT Service provider
TECUNIQUE: Success Stories: IT Service provider
 
Microsoft AI Transformation Partner Playbook.pdf
Microsoft AI Transformation Partner Playbook.pdfMicrosoft AI Transformation Partner Playbook.pdf
Microsoft AI Transformation Partner Playbook.pdf
 
Unlocking the Future of AI Agents with Large Language Models
Unlocking the Future of AI Agents with Large Language ModelsUnlocking the Future of AI Agents with Large Language Models
Unlocking the Future of AI Agents with Large Language Models
 
HR Software Buyers Guide in 2024 - HRSoftware.com
HR Software Buyers Guide in 2024 - HRSoftware.comHR Software Buyers Guide in 2024 - HRSoftware.com
HR Software Buyers Guide in 2024 - HRSoftware.com
 
call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️
call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️
call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️
 
Software Quality Assurance Interview Questions
Software Quality Assurance Interview QuestionsSoftware Quality Assurance Interview Questions
Software Quality Assurance Interview Questions
 
The Ultimate Test Automation Guide_ Best Practices and Tips.pdf
The Ultimate Test Automation Guide_ Best Practices and Tips.pdfThe Ultimate Test Automation Guide_ Best Practices and Tips.pdf
The Ultimate Test Automation Guide_ Best Practices and Tips.pdf
 
The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...
The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...
The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...
 
Exploring the Best Video Editing App.pdf
Exploring the Best Video Editing App.pdfExploring the Best Video Editing App.pdf
Exploring the Best Video Editing App.pdf
 
Azure_Native_Qumulo_High_Performance_Compute_Benchmarks.pdf
Azure_Native_Qumulo_High_Performance_Compute_Benchmarks.pdfAzure_Native_Qumulo_High_Performance_Compute_Benchmarks.pdf
Azure_Native_Qumulo_High_Performance_Compute_Benchmarks.pdf
 
How To Troubleshoot Collaboration Apps for the Modern Connected Worker
How To Troubleshoot Collaboration Apps for the Modern Connected WorkerHow To Troubleshoot Collaboration Apps for the Modern Connected Worker
How To Troubleshoot Collaboration Apps for the Modern Connected Worker
 

Java presentation

  • 1.
  • 2. What is java? Java is a programming language and a platform. "Write once, run anywhere" (WORA), or sometimes “write once, run everywhere” (WORE), is a slogan created by Sun Microsystems to illustrate the cross-platform benefits of the Java language. This language was developed at SUN Microsystems in the year 1995 under the guidance of James Gosling and team. Platform: Any hardware or software environment in which a program runs, is known as a platform. Since Java has its own runtime environment (JRE) and API, it is called platform.
  • 3. Features of Java 1- Simple 2- Object-Oriented 3- Platform independent 4- Secured 5- Robust 6- Architecture neutral 7- Portable 8- Dynamic 9- Interpreted 10- High Performance 11- Multithreaded 12- Distributed
  • 4. Software & tools required Software & Tools- 1- Linux 7.1 or Windows xp/7/8 operating system 2- Java JDK 8 3- Microsoft Notepad or any other text editor 4- Eclipse or NetBeans .
  • 5. JVM , JDK & JRE
  • 6. JVM ● JVM (Java Virtual Machine) is a software. ● It is a specification that provides runtime environment in which java bytecode can be executed. ● It not physically exists. ● JVMs are not same for all hardware and software,for example for window os JVM is different and for Linux JVM is different. ● JVM, JRE and JDK are platform dependent because configuration of each OS differs. But, Java is platform independent.
  • 7. JRE ● The Java Runtime Environment (JRE) is part of the Java Development Kit (JDK). ● It contains set of libraries and tools for developing java application. ● The Java Runtime Environment provides the minimum requirements for executing a Java application. ● It physically exists. ● It contains set of libraries + other files that JVM uses at runtime.
  • 8. JDK ● The Java Development Kit (JDK) is primary components. ● It physically exists. ● It is collection of programming tools and JRE, JVM.
  • 9. Copy this path and set it as PATH in user variables Setting Up of Environment
  • 10. Environment Setup 1- goto- Control Panel>System and Security>System. 2- click on Advance System Settings tab on left sidebar. 3- It will open System Properties tab and click on Advanced tab. 4- Bottom|Right has Environment Variable Button, click on it. 5- Set PATH in User variables and Set JAVA_HOME in System variables . 1st 2nd
  • 11. Where JAVA is used? ● Desktop Applications such as acrobat reader, media player, antivirus etc. ● Web Applications such as irctc.co.in, javatpoint.com etc. ● Enterprise Applications such as banking applications. ● Mobile ● Embedded System ● Smart Card ● Robotics ● Games etc.
  • 12. Types of JAVA Application There are mainly 4 type of applications that can be created using java programming: 1- Standalone Application- Antivirus, Media Player etc. 2- Web Application- JSP, Servlets etc. used to make web application 3- Enterprise Application- JAVA EE at business tier 4- Mobile Application. Android and JAVA ME.
  • 13. First Program “Hello World” 1- open text editor and write first program 2- Save it as Hello.java 3- Open command prompt or terminal . 4- Go to the file and to compile code write “javac Hello.java” command. 5- to run “java Hello”. class Hello { public static void main (String args[]) { System.out.println("Hello JAVA"); } }
  • 15. Class in JAVA “class is the only logical entity.” Class: Class is a blueprint which is containing only list of variables and method and no memory is allocated for them. A class is a group of objects that has common properties. A class in java contains: 1- Data Member, 2- Method, 3- Constructor 4- Block, 5- Class and 6- Interface
  • 16. Object in JAVA “Object is the physical as well as logical entity.” Object: Object is an instance of class, object has state and behaviors. An Object in java has three characteristics: 1- State 2- Behavior 3- Identity State: Represents data (value) of an object. Behavior: Represents the behavior (functionality) of an object Identity: Object identity is typically implemented via a unique ID.
  • 17. Real Life example of Object and class. Class: vehicle Object: car, bus, bike, truck are object of vehicle class. State: Color, Model,speed Behaviour: Travelling Identity: unique number
  • 18. “Variable is a name of memory location or name of reserved area allocated in memory.” There are three types of variables in java 1- local variable ` 2- instance variable 3- static variable A variable that is declared inside the method is called local variable. A variable that is declared inside the class but outside the method is called instance variable . It is not declared as static. A variable that is declared as static is called static variable. It cannot be local. Variables and Datatypes in JAVA
  • 19. DATA Types Basically two types of data type : Primitive & Non-Primitive