SlideShare ist ein Scribd-Unternehmen logo
1 von 10
© Prognoz Technologies Pvt. Ltd
Features of Java
Technology
© Prognoz Technologies Pvt. Ltd
Key Features of Java Technology
 Sun Microsystems has renamed the new J2 versions as Java SE, Java EE and Java ME respectively.
Java is guaranteed to be Write Once, Run Anywhere
Java is:
1. Object Oriented
2. Platform independent
3. Simple
4. Secure
5. Architectural- neutral
6. Portable
7. Robust
8. Multi-threaded
9. Interpreted
10.High Performance
11.Distributed
12.Dynamic
© Prognoz Technologies Pvt. Ltd
Java Environment Setup
 Setting up the path for windows 2000/XP:
 Assuming you have installed Java in c:Program Filesjava JDK directory:
1. Right-click on 'My Computer' and select 'Properties'.
2. Click on the 'Environment variables' button under the 'Advanced' tab.
3. Now alter the 'Path' variable so that it also contains the path to the Java
executable. Example, if the path is currently set to 'C:WINDOWSSYSTEM32',
then change your path to read 'C:WINDOWSSYSTEM32;c:Program Filesjava
JDKbin'.
Popular Java Editors: 1. Notepad
2. Netbeans
3. Eclipse
© Prognoz Technologies Pvt. Ltd
Java Basic Syntax
When we consider a Java program it can be defined as a collection of objects that
communicate via invoking each others methods. Inside Java Programs we have:
1. Object
2. Class
3. Methods
4. Instance Variables
About Java programs, it is very important to keep in mind the following points.
1. Case Sensitivity - Java is case sensitive which means identifier Hello and hello
would have different meaning in Java.
2. Class Names - For all class names the first letter should be in Upper Case.
If several words are used to form a name of the class each inner words first letter
should be in Upper Case.
Example class MyFirstJavaClass
© Prognoz Technologies Pvt. Ltd
Java Basic Syntax
3. Method Names - All method names should start with a Lower Case letter.
If several words are used to form the name of the method, then each inner
word's first letter should be in Upper Case.
Example: public void myMethodName()
4. Program File Name - Name of the program file should exactly match the class
name.
When saving the file you should save it using the class name (Remember java is
case sensitive) and append '.java' to the end of the name. (if the file name and
the class name do not match your program will not compile).
Example : Assume ‘ MyFirstJavaProgram' is the class name. Then the file should
be saved as 'MyFirstJavaProgram.java'
5. public static void main(String args[]) - java program processing starts from the
main() method which is a mandatory part of every java program..
© Prognoz Technologies Pvt. Ltd
Java Identifiers:
In java there are several points to remember about identifiers.
They are as follows:
1. All identifiers should begin with a letter (A to Z or a to z ),
currency character ($) or an underscore (_).
1. After the first character identifiers can have any combination of characters.
2. A key word cannot be used as an identifier.
3. Most importantly identifiers are case sensitive.
4. Examples of legal identifiers: age, $salary, _value, __1_value
5. Examples of illegal identifiers : 123abc, -salary
© Prognoz Technologies Pvt. Ltd
Java Modifiers:
Like other languages it is possible to modify classes, methods etc
by using modifiers.
There are two categories of modifiers.
1. Access Modifiers : default, public , protected, private
2. Non-access Modifiers : final, abstract, strictfp
© Prognoz Technologies Pvt. Ltd
Java Variables:
We would see following type of variables in Java:
1. Local Variables
2. Class Variables (Static Variables)
3. Instance Variables (Non static variables)
Comments in Java :
/* This is my first java program.
* This will print 'Hello World' as the output
* This is an example of multi-line comments. */
// This is an example of single line comment
/* This is also an example of single line comment. */
© Prognoz Technologies Pvt. Ltd
Java Keywords:
© Prognoz Technologies Pvt. Ltd
Thank you!!
10

Weitere ähnliche Inhalte

Was ist angesagt?

Was ist angesagt? (20)

Bca 4020 java programming
Bca 4020   java programmingBca 4020   java programming
Bca 4020 java programming
 
Java PPT
Java PPTJava PPT
Java PPT
 
Java Basic Syntax
Java Basic SyntaxJava Basic Syntax
Java Basic Syntax
 
JAVA PROGRAMMING – Packages - Stream based I/O
JAVA PROGRAMMING – Packages - Stream based I/O JAVA PROGRAMMING – Packages - Stream based I/O
JAVA PROGRAMMING – Packages - Stream based I/O
 
01slide
01slide01slide
01slide
 
01slide
01slide01slide
01slide
 
Class properties
Class propertiesClass properties
Class properties
 
Java interface
Java interface Java interface
Java interface
 
Core java
Core javaCore java
Core java
 
Inheritance in JAVA PPT
Inheritance  in JAVA PPTInheritance  in JAVA PPT
Inheritance in JAVA PPT
 
JAVA Object Oriented Programming (OOP)
JAVA Object Oriented Programming (OOP)JAVA Object Oriented Programming (OOP)
JAVA Object Oriented Programming (OOP)
 
java interface and packages
java interface and packagesjava interface and packages
java interface and packages
 
Java Language
Java LanguageJava Language
Java Language
 
Interfaces In Java
Interfaces In JavaInterfaces In Java
Interfaces In Java
 
Java ocjp level_2
Java ocjp level_2Java ocjp level_2
Java ocjp level_2
 
Packages and Interfaces
Packages and InterfacesPackages and Interfaces
Packages and Interfaces
 
Introduction to Java -unit-1
Introduction to Java -unit-1Introduction to Java -unit-1
Introduction to Java -unit-1
 
Lecture 10
Lecture 10Lecture 10
Lecture 10
 
Java interface
Java interfaceJava interface
Java interface
 
computer science JAVA ppt
computer science JAVA pptcomputer science JAVA ppt
computer science JAVA ppt
 

Andere mochten auch (19)

Sarathi_Resume_June 2016
Sarathi_Resume_June 2016Sarathi_Resume_June 2016
Sarathi_Resume_June 2016
 
Group 2 - Women in the European Workplace
Group 2 - Women in the European WorkplaceGroup 2 - Women in the European Workplace
Group 2 - Women in the European Workplace
 
Trabajo catálogo
 Trabajo catálogo  Trabajo catálogo
Trabajo catálogo
 
cloud computing
 cloud computing cloud computing
cloud computing
 
Trabajo empreneduria
Trabajo empreneduriaTrabajo empreneduria
Trabajo empreneduria
 
William Gleason CV OCT 2016
William Gleason CV  OCT 2016William Gleason CV  OCT 2016
William Gleason CV OCT 2016
 
Examen robalino 2_a
Examen robalino 2_aExamen robalino 2_a
Examen robalino 2_a
 
Ricky ortegon
Ricky ortegonRicky ortegon
Ricky ortegon
 
글로벌 사업PM 직무 면접 준비용 신규 사업 제안서
글로벌 사업PM 직무 면접 준비용 신규 사업 제안서글로벌 사업PM 직무 면접 준비용 신규 사업 제안서
글로벌 사업PM 직무 면접 준비용 신규 사업 제안서
 
How does my horror film challenges forms and
How does my horror film challenges forms andHow does my horror film challenges forms and
How does my horror film challenges forms and
 
Godrej properties limited
Godrej properties limitedGodrej properties limited
Godrej properties limited
 
Object-Oriented Paradigm
Object-Oriented Paradigm Object-Oriented Paradigm
Object-Oriented Paradigm
 
Internet of Things: How To Start
Internet of Things: How To StartInternet of Things: How To Start
Internet of Things: How To Start
 
First Solar Buy CTC
First Solar Buy CTCFirst Solar Buy CTC
First Solar Buy CTC
 
Md09 multithreading
Md09 multithreadingMd09 multithreading
Md09 multithreading
 
Dockerizing IoT Services
Dockerizing IoT ServicesDockerizing IoT Services
Dockerizing IoT Services
 
PROJECT AMUL
PROJECT AMULPROJECT AMUL
PROJECT AMUL
 
Report on amul
Report on amulReport on amul
Report on amul
 
Calendario2017 en galego
Calendario2017 en galegoCalendario2017 en galego
Calendario2017 en galego
 

Ähnlich wie Features of java technology

Ähnlich wie Features of java technology (20)

Computer programming 2 chapter 1
Computer programming 2  chapter 1Computer programming 2  chapter 1
Computer programming 2 chapter 1
 
Core java
Core java Core java
Core java
 
Core java &collections
Core java &collectionsCore java &collections
Core java &collections
 
Core java1
Core java1Core java1
Core java1
 
Java for Mainframers
Java for MainframersJava for Mainframers
Java for Mainframers
 
java
java java
java
 
Programming in java ppt
Programming in java  pptProgramming in java  ppt
Programming in java ppt
 
Programming in java ppt
Programming in java  pptProgramming in java  ppt
Programming in java ppt
 
Unit of competency
Unit of competencyUnit of competency
Unit of competency
 
Chapter 2
Chapter 2Chapter 2
Chapter 2
 
www.reallygreatsite.com (4).pdf
www.reallygreatsite.com (4).pdfwww.reallygreatsite.com (4).pdf
www.reallygreatsite.com (4).pdf
 
java traning report_Summer.docx
java traning report_Summer.docxjava traning report_Summer.docx
java traning report_Summer.docx
 
Intro Java Rev010
Intro Java Rev010Intro Java Rev010
Intro Java Rev010
 
Cso gaddis java_chapter2
Cso gaddis java_chapter2Cso gaddis java_chapter2
Cso gaddis java_chapter2
 
Modern_2.pptx for java
Modern_2.pptx for java Modern_2.pptx for java
Modern_2.pptx for java
 
OOP with Java
OOP with JavaOOP with Java
OOP with Java
 
Core Java
Core JavaCore Java
Core Java
 
Javaprogbasics
JavaprogbasicsJavaprogbasics
Javaprogbasics
 
DAY_1.1.pptx
DAY_1.1.pptxDAY_1.1.pptx
DAY_1.1.pptx
 
Introduction
IntroductionIntroduction
Introduction
 

Mehr von Prognoz Technologies Pvt. Ltd. (10)

Introduction to package in java
Introduction to package in javaIntroduction to package in java
Introduction to package in java
 
A comprehensive software infrastructure of .Net
A comprehensive software infrastructure of .Net  A comprehensive software infrastructure of .Net
A comprehensive software infrastructure of .Net
 
Microsoft C# programming basics
Microsoft C# programming basics  Microsoft C# programming basics
Microsoft C# programming basics
 
Introduction of .net framework
Introduction of .net frameworkIntroduction of .net framework
Introduction of .net framework
 
How to handle exceptions in Java Technology
How to handle exceptions in Java Technology How to handle exceptions in Java Technology
How to handle exceptions in Java Technology
 
Basic concept of Object Oriented Programming
Basic concept of Object Oriented Programming Basic concept of Object Oriented Programming
Basic concept of Object Oriented Programming
 
Interesting Concept of Object Oriented Programming
Interesting Concept of Object Oriented Programming Interesting Concept of Object Oriented Programming
Interesting Concept of Object Oriented Programming
 
Qualities of a Successful Person
Qualities of a Successful PersonQualities of a Successful Person
Qualities of a Successful Person
 
Concept of Object Oriented Programming
Concept of Object Oriented Programming Concept of Object Oriented Programming
Concept of Object Oriented Programming
 
Quantitative Aptitude Concepts
Quantitative Aptitude ConceptsQuantitative Aptitude Concepts
Quantitative Aptitude Concepts
 

Kürzlich hochgeladen

How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17Celine George
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdfQucHHunhnh
 
Measures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeMeasures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeThiyagu K
 
Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfagholdier
 
psychiatric nursing HISTORY COLLECTION .docx
psychiatric  nursing HISTORY  COLLECTION  .docxpsychiatric  nursing HISTORY  COLLECTION  .docx
psychiatric nursing HISTORY COLLECTION .docxPoojaSen20
 
Unit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxUnit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxVishalSingh1417
 
Key note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfKey note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfAdmir Softic
 
ICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxAreebaZafar22
 
Gardella_PRCampaignConclusion Pitch Letter
Gardella_PRCampaignConclusion Pitch LetterGardella_PRCampaignConclusion Pitch Letter
Gardella_PRCampaignConclusion Pitch LetterMateoGardella
 
Unit-IV; Professional Sales Representative (PSR).pptx
Unit-IV; Professional Sales Representative (PSR).pptxUnit-IV; Professional Sales Representative (PSR).pptx
Unit-IV; Professional Sales Representative (PSR).pptxVishalSingh1417
 
Z Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphZ Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphThiyagu K
 
Gardella_Mateo_IntellectualProperty.pdf.
Gardella_Mateo_IntellectualProperty.pdf.Gardella_Mateo_IntellectualProperty.pdf.
Gardella_Mateo_IntellectualProperty.pdf.MateoGardella
 
An Overview of Mutual Funds Bcom Project.pdf
An Overview of Mutual Funds Bcom Project.pdfAn Overview of Mutual Funds Bcom Project.pdf
An Overview of Mutual Funds Bcom Project.pdfSanaAli374401
 
Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...
Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...
Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...Shubhangi Sonawane
 
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxBasic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxDenish Jangid
 
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in DelhiRussian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhikauryashika82
 
Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..Disha Kariya
 

Kürzlich hochgeladen (20)

How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdf
 
Measures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeMeasures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and Mode
 
Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdf
 
psychiatric nursing HISTORY COLLECTION .docx
psychiatric  nursing HISTORY  COLLECTION  .docxpsychiatric  nursing HISTORY  COLLECTION  .docx
psychiatric nursing HISTORY COLLECTION .docx
 
Unit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxUnit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptx
 
Key note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfKey note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdf
 
ICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptx
 
Gardella_PRCampaignConclusion Pitch Letter
Gardella_PRCampaignConclusion Pitch LetterGardella_PRCampaignConclusion Pitch Letter
Gardella_PRCampaignConclusion Pitch Letter
 
Unit-IV; Professional Sales Representative (PSR).pptx
Unit-IV; Professional Sales Representative (PSR).pptxUnit-IV; Professional Sales Representative (PSR).pptx
Unit-IV; Professional Sales Representative (PSR).pptx
 
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
 
Advance Mobile Application Development class 07
Advance Mobile Application Development class 07Advance Mobile Application Development class 07
Advance Mobile Application Development class 07
 
Z Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphZ Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot Graph
 
Gardella_Mateo_IntellectualProperty.pdf.
Gardella_Mateo_IntellectualProperty.pdf.Gardella_Mateo_IntellectualProperty.pdf.
Gardella_Mateo_IntellectualProperty.pdf.
 
An Overview of Mutual Funds Bcom Project.pdf
An Overview of Mutual Funds Bcom Project.pdfAn Overview of Mutual Funds Bcom Project.pdf
An Overview of Mutual Funds Bcom Project.pdf
 
Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...
Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...
Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...
 
Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024
 
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxBasic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
 
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in DelhiRussian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
 
Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..
 

Features of java technology

  • 1. © Prognoz Technologies Pvt. Ltd Features of Java Technology
  • 2. © Prognoz Technologies Pvt. Ltd Key Features of Java Technology  Sun Microsystems has renamed the new J2 versions as Java SE, Java EE and Java ME respectively. Java is guaranteed to be Write Once, Run Anywhere Java is: 1. Object Oriented 2. Platform independent 3. Simple 4. Secure 5. Architectural- neutral 6. Portable 7. Robust 8. Multi-threaded 9. Interpreted 10.High Performance 11.Distributed 12.Dynamic
  • 3. © Prognoz Technologies Pvt. Ltd Java Environment Setup  Setting up the path for windows 2000/XP:  Assuming you have installed Java in c:Program Filesjava JDK directory: 1. Right-click on 'My Computer' and select 'Properties'. 2. Click on the 'Environment variables' button under the 'Advanced' tab. 3. Now alter the 'Path' variable so that it also contains the path to the Java executable. Example, if the path is currently set to 'C:WINDOWSSYSTEM32', then change your path to read 'C:WINDOWSSYSTEM32;c:Program Filesjava JDKbin'. Popular Java Editors: 1. Notepad 2. Netbeans 3. Eclipse
  • 4. © Prognoz Technologies Pvt. Ltd Java Basic Syntax When we consider a Java program it can be defined as a collection of objects that communicate via invoking each others methods. Inside Java Programs we have: 1. Object 2. Class 3. Methods 4. Instance Variables About Java programs, it is very important to keep in mind the following points. 1. Case Sensitivity - Java is case sensitive which means identifier Hello and hello would have different meaning in Java. 2. Class Names - For all class names the first letter should be in Upper Case. If several words are used to form a name of the class each inner words first letter should be in Upper Case. Example class MyFirstJavaClass
  • 5. © Prognoz Technologies Pvt. Ltd Java Basic Syntax 3. Method Names - All method names should start with a Lower Case letter. If several words are used to form the name of the method, then each inner word's first letter should be in Upper Case. Example: public void myMethodName() 4. Program File Name - Name of the program file should exactly match the class name. When saving the file you should save it using the class name (Remember java is case sensitive) and append '.java' to the end of the name. (if the file name and the class name do not match your program will not compile). Example : Assume ‘ MyFirstJavaProgram' is the class name. Then the file should be saved as 'MyFirstJavaProgram.java' 5. public static void main(String args[]) - java program processing starts from the main() method which is a mandatory part of every java program..
  • 6. © Prognoz Technologies Pvt. Ltd Java Identifiers: In java there are several points to remember about identifiers. They are as follows: 1. All identifiers should begin with a letter (A to Z or a to z ), currency character ($) or an underscore (_). 1. After the first character identifiers can have any combination of characters. 2. A key word cannot be used as an identifier. 3. Most importantly identifiers are case sensitive. 4. Examples of legal identifiers: age, $salary, _value, __1_value 5. Examples of illegal identifiers : 123abc, -salary
  • 7. © Prognoz Technologies Pvt. Ltd Java Modifiers: Like other languages it is possible to modify classes, methods etc by using modifiers. There are two categories of modifiers. 1. Access Modifiers : default, public , protected, private 2. Non-access Modifiers : final, abstract, strictfp
  • 8. © Prognoz Technologies Pvt. Ltd Java Variables: We would see following type of variables in Java: 1. Local Variables 2. Class Variables (Static Variables) 3. Instance Variables (Non static variables) Comments in Java : /* This is my first java program. * This will print 'Hello World' as the output * This is an example of multi-line comments. */ // This is an example of single line comment /* This is also an example of single line comment. */
  • 9. © Prognoz Technologies Pvt. Ltd Java Keywords:
  • 10. © Prognoz Technologies Pvt. Ltd Thank you!! 10