SlideShare a Scribd company logo
1 of 10
© Xebia IT Architects Pvt Ltd. 2014. Confidential: Not for Reproduction & Distribution. www.xebia.in
Introduction To Java
Fresher’s 2016
© Xebia IT Architects Pvt Ltd. 2014. Confidential: Not for Reproduction & Distribution. www.xebia.in
Characteristics of Java
 Architectural Neutral
 High Performance
 Distributed
 Portable
 Secure
 Robust
 Object Oriented ??
2
© Xebia IT Architects Pvt Ltd. 2014. Confidential: Not for Reproduction & Distribution. www.xebia.in
Object Oriented Language
 Fully support Encapsulation and Abstraction
 Must support Inheritance
 Must support Polymorphism
 All predefined must be Objects
 All user defined types must be Objects
 All operations performed on objects must only be through methods exposed
by object.
3
© Xebia IT Architects Pvt Ltd. 2014. Confidential: Not for Reproduction & Distribution. www.xebia.in
Object Oriented Features of Java
• Encapsulation
• Implements information hiding and modularity (abstraction)
• Polymorphism
• Same message sent to different objects results in behavior that's
dependent on the object receiving the message
• Inheritance
• Define new classes and behavior based on existing classes to help code
re-use.
• Dynamic binding
• You need to be able to send messages to objects without having to know
their specific type at the time you write your code.
4
© Xebia IT Architects Pvt Ltd. 2014. Confidential: Not for Reproduction & Distribution. www.xebia.in
Single Inheritance Model
• Everything is derived from Object class.
• https://docs.oracle.com/javase/7/docs/api/java/lang/package-tree.html
• http://docstore.mik.ua/orelly/java-ent/jnut/figs/JN3_1201.gif
• Except for few interfaces
• Runnable
• Serializable
• Cloneable
5
© Xebia IT Architects Pvt Ltd. 2014. Confidential: Not for Reproduction & Distribution. www.xebia.in
Some Important Classes
• Class
• Every class has an Class Object.
• Throwable
• Parent for Exception, Error
• Runtime
• Interact with the Runtime Environment
• System
• Loading libraries, I/O, Properties
• ProcessBuilder
• Create OS Process
6
© Xebia IT Architects Pvt Ltd. 2014. Confidential: Not for Reproduction & Distribution. www.xebia.in
• ClassLoader
• Loads Classes, used by Security Manager
• SecurityManager
• Implements security policy
• Package
• Find information about loaded packages
• Math
• Mathematical functions
7
Some Important Classes Continued
© Xebia IT Architects Pvt Ltd. 2014. Confidential: Not for Reproduction & Distribution. www.xebia.in
Q
U
E
S
T
I
O
N
S
What’s Next
• Data Types
• Operators
8
© Xebia IT Architects Pvt Ltd. 2014. Confidential: Not for Reproduction & Distribution. www.xebia.in 9
Thanks
© Xebia IT Architects Pvt Ltd. 2014. Confidential: Not for Reproduction & Distribution. www.xebia.in
9
© Xebia IT Architects Pvt Ltd. 2014. Confidential: Not for Reproduction & Distribution. www.xebia.in
Contact us at info@xebia.com

More Related Content

Viewers also liked

The Team Without Which We Can’t Survive
The Team Without Which We Can’t SurviveThe Team Without Which We Can’t Survive
The Team Without Which We Can’t Surviveprosvsports
 
Health minister in chhattisgarh
Health minister in chhattisgarhHealth minister in chhattisgarh
Health minister in chhattisgarhprachisingh89
 
Basic Functions Of Management
Basic Functions Of ManagementBasic Functions Of Management
Basic Functions Of ManagementMuhammad Arif
 
Panchayat and rural development minister
Panchayat and rural development ministerPanchayat and rural development minister
Panchayat and rural development ministerprachisingh89
 
Parliamentary affairs minister
Parliamentary affairs ministerParliamentary affairs minister
Parliamentary affairs ministerprachisingh89
 
структура методичної роботи_з_керівними_кадрами
структура методичної роботи_з_керівними_кадрамиструктура методичної роботи_з_керівними_кадрами
структура методичної роботи_з_керівними_кадрамиВідділ Освіти
 
IPv6 Deployment Planning Tutorial, by Philip Smith [APNIC 38]
IPv6 Deployment Planning Tutorial, by Philip Smith [APNIC 38]IPv6 Deployment Planning Tutorial, by Philip Smith [APNIC 38]
IPv6 Deployment Planning Tutorial, by Philip Smith [APNIC 38]APNIC
 
алгебра 7 класс мордкович
алгебра 7 класс мордковичалгебра 7 класс мордкович
алгебра 7 класс мордковичreshyvse
 

Viewers also liked (9)

The Team Without Which We Can’t Survive
The Team Without Which We Can’t SurviveThe Team Without Which We Can’t Survive
The Team Without Which We Can’t Survive
 
Health minister in chhattisgarh
Health minister in chhattisgarhHealth minister in chhattisgarh
Health minister in chhattisgarh
 
Basic Functions Of Management
Basic Functions Of ManagementBasic Functions Of Management
Basic Functions Of Management
 
Panchayat and rural development minister
Panchayat and rural development ministerPanchayat and rural development minister
Panchayat and rural development minister
 
Parliamentary affairs minister
Parliamentary affairs ministerParliamentary affairs minister
Parliamentary affairs minister
 
структура методичної роботи_з_керівними_кадрами
структура методичної роботи_з_керівними_кадрамиструктура методичної роботи_з_керівними_кадрами
структура методичної роботи_з_керівними_кадрами
 
IPv6 Deployment Planning Tutorial, by Philip Smith [APNIC 38]
IPv6 Deployment Planning Tutorial, by Philip Smith [APNIC 38]IPv6 Deployment Planning Tutorial, by Philip Smith [APNIC 38]
IPv6 Deployment Planning Tutorial, by Philip Smith [APNIC 38]
 
алгебра 7 класс мордкович
алгебра 7 класс мордковичалгебра 7 класс мордкович
алгебра 7 класс мордкович
 
Major Project Presentation
Major Project PresentationMajor Project Presentation
Major Project Presentation
 

Similar to 2. intro to java

Working effectively with OpenShift
Working effectively with OpenShiftWorking effectively with OpenShift
Working effectively with OpenShiftShekhar Gulati
 
Introduction to Java
Introduction to JavaIntroduction to Java
Introduction to JavaSoumya Suman
 
Introduction to Java Programming
Introduction to Java ProgrammingIntroduction to Java Programming
Introduction to Java ProgrammingRavi Kant Sahu
 
Dependency injection via annotations v1.0
Dependency injection via annotations v1.0Dependency injection via annotations v1.0
Dependency injection via annotations v1.0Jerry Kurian
 
MicroProfile for MicroServices
MicroProfile for MicroServicesMicroProfile for MicroServices
MicroProfile for MicroServicesMert Çalışkan
 
Eclipse MicroProfile 과 Microservice Java framework – Helidon
Eclipse MicroProfile 과 Microservice Java framework – HelidonEclipse MicroProfile 과 Microservice Java framework – Helidon
Eclipse MicroProfile 과 Microservice Java framework – HelidonOracle Korea
 
Subsystems in the Wild - G Charters
Subsystems in the Wild - G ChartersSubsystems in the Wild - G Charters
Subsystems in the Wild - G Chartersmfrancis
 
3. Attacking iOS Applications (Part 2)
 3. Attacking iOS Applications (Part 2) 3. Attacking iOS Applications (Part 2)
3. Attacking iOS Applications (Part 2)Sam Bowne
 
Selenium Online Training
Selenium  Online TrainingSelenium  Online Training
Selenium Online TrainingLearntek1
 
My sql 5.5_product_update
My sql 5.5_product_updateMy sql 5.5_product_update
My sql 5.5_product_updatehenriquesidney
 
Core Java for Selenium
Core Java for SeleniumCore Java for Selenium
Core Java for SeleniumRajathi-QA
 
geecon 2016: "What's Oracle Doing with JavaScript?!"
geecon 2016: "What's Oracle Doing with JavaScript?!"geecon 2016: "What's Oracle Doing with JavaScript?!"
geecon 2016: "What's Oracle Doing with JavaScript?!"Geertjan Wielenga
 

Similar to 2. intro to java (20)

Working effectively with OpenShift
Working effectively with OpenShiftWorking effectively with OpenShift
Working effectively with OpenShift
 
Introduction to Java
Introduction to JavaIntroduction to Java
Introduction to Java
 
L1 basics
L1 basicsL1 basics
L1 basics
 
Introduction to Java Programming
Introduction to Java ProgrammingIntroduction to Java Programming
Introduction to Java Programming
 
Dependency injection via annotations v1.0
Dependency injection via annotations v1.0Dependency injection via annotations v1.0
Dependency injection via annotations v1.0
 
Java basics at dallas technologies
Java basics at dallas technologiesJava basics at dallas technologies
Java basics at dallas technologies
 
Java introduction
Java introductionJava introduction
Java introduction
 
Orientation - Java
Orientation - JavaOrientation - Java
Orientation - Java
 
Oracle JET
Oracle JETOracle JET
Oracle JET
 
MicroProfile for MicroServices
MicroProfile for MicroServicesMicroProfile for MicroServices
MicroProfile for MicroServices
 
Draper - Visnupriya - spriteXchange
Draper - Visnupriya - spriteXchangeDraper - Visnupriya - spriteXchange
Draper - Visnupriya - spriteXchange
 
Eclipse MicroProfile 과 Microservice Java framework – Helidon
Eclipse MicroProfile 과 Microservice Java framework – HelidonEclipse MicroProfile 과 Microservice Java framework – Helidon
Eclipse MicroProfile 과 Microservice Java framework – Helidon
 
Subsystems in the Wild - G Charters
Subsystems in the Wild - G ChartersSubsystems in the Wild - G Charters
Subsystems in the Wild - G Charters
 
javr
javrjavr
javr
 
3. Attacking iOS Applications (Part 2)
 3. Attacking iOS Applications (Part 2) 3. Attacking iOS Applications (Part 2)
3. Attacking iOS Applications (Part 2)
 
Selenium Online Training
Selenium  Online TrainingSelenium  Online Training
Selenium Online Training
 
My sql 5.5_product_update
My sql 5.5_product_updateMy sql 5.5_product_update
My sql 5.5_product_update
 
Core Java for Selenium
Core Java for SeleniumCore Java for Selenium
Core Java for Selenium
 
Introduction to Java
Introduction to JavaIntroduction to Java
Introduction to Java
 
geecon 2016: "What's Oracle Doing with JavaScript?!"
geecon 2016: "What's Oracle Doing with JavaScript?!"geecon 2016: "What's Oracle Doing with JavaScript?!"
geecon 2016: "What's Oracle Doing with JavaScript?!"
 

Recently uploaded

Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingTechSoup
 
Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfsanyamsingh5019
 
Interactive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationInteractive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationnomboosow
 
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
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityGeoBlogs
 
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdfBASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdfSoniaTolstoy
 
Accessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactAccessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactdawncurless
 
Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3JemimahLaneBuaron
 
Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104misteraugie
 
Class 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdfClass 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdfAyushMahapatra5
 
Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)eniolaolutunde
 
Beyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactBeyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactPECB
 
Measures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SDMeasures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SDThiyagu K
 
Student login on Anyboli platform.helpin
Student login on Anyboli platform.helpinStudent login on Anyboli platform.helpin
Student login on Anyboli platform.helpinRaunakKeshri1
 
Unit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxUnit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxVishalSingh1417
 
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...Sapna Thakur
 
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
 
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Krashi Coaching
 

Recently uploaded (20)

Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy Consulting
 
Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdf
 
Interactive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationInteractive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communication
 
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
 
Mattingly "AI & Prompt Design: The Basics of Prompt Design"
Mattingly "AI & Prompt Design: The Basics of Prompt Design"Mattingly "AI & Prompt Design: The Basics of Prompt Design"
Mattingly "AI & Prompt Design: The Basics of Prompt Design"
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activity
 
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdfBASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
 
Accessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactAccessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impact
 
Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3
 
Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104
 
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptxINDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
 
Class 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdfClass 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdf
 
Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)
 
Beyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactBeyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global Impact
 
Measures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SDMeasures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SD
 
Student login on Anyboli platform.helpin
Student login on Anyboli platform.helpinStudent login on Anyboli platform.helpin
Student login on Anyboli platform.helpin
 
Unit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxUnit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptx
 
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...
 
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
 
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
 

2. intro to java

  • 1. © Xebia IT Architects Pvt Ltd. 2014. Confidential: Not for Reproduction & Distribution. www.xebia.in Introduction To Java Fresher’s 2016
  • 2. © Xebia IT Architects Pvt Ltd. 2014. Confidential: Not for Reproduction & Distribution. www.xebia.in Characteristics of Java  Architectural Neutral  High Performance  Distributed  Portable  Secure  Robust  Object Oriented ?? 2
  • 3. © Xebia IT Architects Pvt Ltd. 2014. Confidential: Not for Reproduction & Distribution. www.xebia.in Object Oriented Language  Fully support Encapsulation and Abstraction  Must support Inheritance  Must support Polymorphism  All predefined must be Objects  All user defined types must be Objects  All operations performed on objects must only be through methods exposed by object. 3
  • 4. © Xebia IT Architects Pvt Ltd. 2014. Confidential: Not for Reproduction & Distribution. www.xebia.in Object Oriented Features of Java • Encapsulation • Implements information hiding and modularity (abstraction) • Polymorphism • Same message sent to different objects results in behavior that's dependent on the object receiving the message • Inheritance • Define new classes and behavior based on existing classes to help code re-use. • Dynamic binding • You need to be able to send messages to objects without having to know their specific type at the time you write your code. 4
  • 5. © Xebia IT Architects Pvt Ltd. 2014. Confidential: Not for Reproduction & Distribution. www.xebia.in Single Inheritance Model • Everything is derived from Object class. • https://docs.oracle.com/javase/7/docs/api/java/lang/package-tree.html • http://docstore.mik.ua/orelly/java-ent/jnut/figs/JN3_1201.gif • Except for few interfaces • Runnable • Serializable • Cloneable 5
  • 6. © Xebia IT Architects Pvt Ltd. 2014. Confidential: Not for Reproduction & Distribution. www.xebia.in Some Important Classes • Class • Every class has an Class Object. • Throwable • Parent for Exception, Error • Runtime • Interact with the Runtime Environment • System • Loading libraries, I/O, Properties • ProcessBuilder • Create OS Process 6
  • 7. © Xebia IT Architects Pvt Ltd. 2014. Confidential: Not for Reproduction & Distribution. www.xebia.in • ClassLoader • Loads Classes, used by Security Manager • SecurityManager • Implements security policy • Package • Find information about loaded packages • Math • Mathematical functions 7 Some Important Classes Continued
  • 8. © Xebia IT Architects Pvt Ltd. 2014. Confidential: Not for Reproduction & Distribution. www.xebia.in Q U E S T I O N S What’s Next • Data Types • Operators 8
  • 9. © Xebia IT Architects Pvt Ltd. 2014. Confidential: Not for Reproduction & Distribution. www.xebia.in 9 Thanks © Xebia IT Architects Pvt Ltd. 2014. Confidential: Not for Reproduction & Distribution. www.xebia.in 9
  • 10. © Xebia IT Architects Pvt Ltd. 2014. Confidential: Not for Reproduction & Distribution. www.xebia.in Contact us at info@xebia.com

Editor's Notes

  1.  the Java Compiler TM product generatesbytecodes--an architecture neutral intermediate format designed to transport code efficiently to multiple hardware and software platforms. The interpreted nature of Java technology solves both the binary distribution problem and the version problem; the same Java programming language byte codes will run on any platform.Architecture neutrality is just one part of a truly portable system. Java technology takes portability a stage further by being strict in its definition of the basic language. Java technology puts a stake in the ground and specifies the sizes of its basic data types and the behavior of its arithmetic operators. Your programs are the same on every platform--there are no data type incompatibilities across hardware and software architectures.  The automatic garbage collector runs as a low-priority background thread, ensuring a high probability that memory is available when required, leading to better performance. Java technology's multithreading capability provides the means to build applications with many concurrent threads of activity. Multithreading thus results in a high degree of interactivity for the end user. While the Java Compiler is strict in its compile-time static checking, the language and run-time system are dynamic in their linking stages. Classes are linked only as needed. New code modules can be linked in on demand from a variety of sources, even from sources across a network.
  2. Static variables Primitive data types Primitive operators like +
  3. Static variables Primitive data types Primitive operators like +
  4. Static variables Primitive data types Primitive operators like +
  5. Static variables Primitive data types Primitive operators like +
  6. Static variables Primitive data types Primitive operators like +
  7. 8