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

Tech Tools Workshops: Virtual Learning Spaces
Tech Tools Workshops: Virtual Learning SpacesTech Tools Workshops: Virtual Learning Spaces
Tech Tools Workshops: Virtual Learning Spaces
E S
 
Moon Math Project
Moon Math ProjectMoon Math Project
Moon Math Project
guestc920cc
 
Second Life 9th Birthday Virtual Learning Spaces Presentation
Second Life 9th Birthday Virtual Learning Spaces PresentationSecond Life 9th Birthday Virtual Learning Spaces Presentation
Second Life 9th Birthday Virtual Learning Spaces Presentation
E S
 
wooo
wooowooo
wooo
briwa
 
Prostrut Catalogue 2015
Prostrut Catalogue 2015Prostrut Catalogue 2015
Prostrut Catalogue 2015
David Gahan
 
Interesting content: Synectics (Gordon/Little's method)
Interesting content: Synectics (Gordon/Little's method)Interesting content: Synectics (Gordon/Little's method)
Interesting content: Synectics (Gordon/Little's method)
Jorclaret
 
Five keys to Emergency Scene Management
Five keys to Emergency Scene ManagementFive keys to Emergency Scene Management
Five keys to Emergency Scene Management
Rommie Duckworth
 
Scene size up and initial assessment
Scene size up and initial assessmentScene size up and initial assessment
Scene size up and initial assessment
kkirkemtp
 

Viewers also liked (9)

Atletismo
AtletismoAtletismo
Atletismo
 
Tech Tools Workshops: Virtual Learning Spaces
Tech Tools Workshops: Virtual Learning SpacesTech Tools Workshops: Virtual Learning Spaces
Tech Tools Workshops: Virtual Learning Spaces
 
Moon Math Project
Moon Math ProjectMoon Math Project
Moon Math Project
 
Second Life 9th Birthday Virtual Learning Spaces Presentation
Second Life 9th Birthday Virtual Learning Spaces PresentationSecond Life 9th Birthday Virtual Learning Spaces Presentation
Second Life 9th Birthday Virtual Learning Spaces Presentation
 
wooo
wooowooo
wooo
 
Prostrut Catalogue 2015
Prostrut Catalogue 2015Prostrut Catalogue 2015
Prostrut Catalogue 2015
 
Interesting content: Synectics (Gordon/Little's method)
Interesting content: Synectics (Gordon/Little's method)Interesting content: Synectics (Gordon/Little's method)
Interesting content: Synectics (Gordon/Little's method)
 
Five keys to Emergency Scene Management
Five keys to Emergency Scene ManagementFive keys to Emergency Scene Management
Five keys to Emergency Scene Management
 
Scene size up and initial assessment
Scene size up and initial assessmentScene size up and initial assessment
Scene size up and initial assessment
 

Similar to 2. intro to java

Working effectively with OpenShift
Working effectively with OpenShiftWorking effectively with OpenShift
Working effectively with OpenShift
Shekhar Gulati
 
Introduction to Java
Introduction to JavaIntroduction to Java
Introduction to Java
Soumya Suman
 
L1 basics
L1 basicsL1 basics
L1 basics
teach4uin
 
Introduction to Java Programming
Introduction to Java ProgrammingIntroduction to Java Programming
Introduction to Java Programming
Ravi Kant Sahu
 
Dependency injection via annotations v1.0
Dependency injection via annotations v1.0Dependency injection via annotations v1.0
Dependency injection via annotations v1.0
Jerry Kurian
 
Java basics at dallas technologies
Java basics at dallas technologiesJava basics at dallas technologies
Java basics at dallas technologies
dallastechnologiesinbtm
 
Java introduction
Java introductionJava introduction
Java introduction
Muthukumaran Subramanian
 
Orientation - Java
Orientation - JavaOrientation - Java
Orientation - Java
Franco Nazareno
 
Oracle JET
Oracle JETOracle JET
Oracle JET
Geertjan Wielenga
 
MicroProfile for MicroServices
MicroProfile for MicroServicesMicroProfile for MicroServices
MicroProfile for MicroServices
Mert Çalışkan
 
Draper - Visnupriya - spriteXchange
Draper - Visnupriya - spriteXchangeDraper - Visnupriya - spriteXchange
Draper - Visnupriya - spriteXchange
SPRITLE SOFTWARE PRIVATE LIMIT ED
 
Eclipse MicroProfile 과 Microservice Java framework – Helidon
Eclipse MicroProfile 과 Microservice Java framework – HelidonEclipse MicroProfile 과 Microservice Java framework – Helidon
Eclipse MicroProfile 과 Microservice Java framework – Helidon
Oracle Korea
 
Subsystems in the Wild - G Charters
Subsystems in the Wild - G ChartersSubsystems in the Wild - G Charters
Subsystems in the Wild - G Charters
mfrancis
 
javr
javrjavr
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 Training
Learntek1
 
My sql 5.5_product_update
My sql 5.5_product_updateMy sql 5.5_product_update
My sql 5.5_product_update
henriquesidney
 
Core Java for Selenium
Core Java for SeleniumCore Java for Selenium
Core Java for Selenium
Rajathi-QA
 
Introduction to Java
Introduction to JavaIntroduction to Java
Introduction to Java
Professional Guru
 
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

Film vocab for eal 3 students: Australia the movie
Film vocab for eal 3 students: Australia the movieFilm vocab for eal 3 students: Australia the movie
Film vocab for eal 3 students: Australia the movie
Nicholas Montgomery
 
Pollock and Snow "DEIA in the Scholarly Landscape, Session One: Setting Expec...
Pollock and Snow "DEIA in the Scholarly Landscape, Session One: Setting Expec...Pollock and Snow "DEIA in the Scholarly Landscape, Session One: Setting Expec...
Pollock and Snow "DEIA in the Scholarly Landscape, Session One: Setting Expec...
National Information Standards Organization (NISO)
 
BÀI TẬP BỔ TRỢ TIẾNG ANH 8 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2023-2024 (CÓ FI...
BÀI TẬP BỔ TRỢ TIẾNG ANH 8 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2023-2024 (CÓ FI...BÀI TẬP BỔ TRỢ TIẾNG ANH 8 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2023-2024 (CÓ FI...
BÀI TẬP BỔ TRỢ TIẾNG ANH 8 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2023-2024 (CÓ FI...
Nguyen Thanh Tu Collection
 
UGC NET Exam Paper 1- Unit 1:Teaching Aptitude
UGC NET Exam Paper 1- Unit 1:Teaching AptitudeUGC NET Exam Paper 1- Unit 1:Teaching Aptitude
UGC NET Exam Paper 1- Unit 1:Teaching Aptitude
S. Raj Kumar
 
Cognitive Development Adolescence Psychology
Cognitive Development Adolescence PsychologyCognitive Development Adolescence Psychology
Cognitive Development Adolescence Psychology
paigestewart1632
 
Chapter wise All Notes of First year Basic Civil Engineering.pptx
Chapter wise All Notes of First year Basic Civil Engineering.pptxChapter wise All Notes of First year Basic Civil Engineering.pptx
Chapter wise All Notes of First year Basic Civil Engineering.pptx
Denish Jangid
 
BÀI TẬP BỔ TRỢ TIẾNG ANH LỚP 9 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2024-2025 - ...
BÀI TẬP BỔ TRỢ TIẾNG ANH LỚP 9 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2024-2025 - ...BÀI TẬP BỔ TRỢ TIẾNG ANH LỚP 9 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2024-2025 - ...
BÀI TẬP BỔ TRỢ TIẾNG ANH LỚP 9 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2024-2025 - ...
Nguyen Thanh Tu Collection
 
spot a liar (Haiqa 146).pptx Technical writhing and presentation skills
spot a liar (Haiqa 146).pptx Technical writhing and presentation skillsspot a liar (Haiqa 146).pptx Technical writhing and presentation skills
spot a liar (Haiqa 146).pptx Technical writhing and presentation skills
haiqairshad
 
How to Make a Field Mandatory in Odoo 17
How to Make a Field Mandatory in Odoo 17How to Make a Field Mandatory in Odoo 17
How to Make a Field Mandatory in Odoo 17
Celine George
 
NEWSPAPERS - QUESTION 1 - REVISION POWERPOINT.pptx
NEWSPAPERS - QUESTION 1 - REVISION POWERPOINT.pptxNEWSPAPERS - QUESTION 1 - REVISION POWERPOINT.pptx
NEWSPAPERS - QUESTION 1 - REVISION POWERPOINT.pptx
iammrhaywood
 
বাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdf
বাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdfবাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdf
বাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdf
eBook.com.bd (প্রয়োজনীয় বাংলা বই)
 
Digital Artefact 1 - Tiny Home Environmental Design
Digital Artefact 1 - Tiny Home Environmental DesignDigital Artefact 1 - Tiny Home Environmental Design
Digital Artefact 1 - Tiny Home Environmental Design
amberjdewit93
 
BBR 2024 Summer Sessions Interview Training
BBR  2024 Summer Sessions Interview TrainingBBR  2024 Summer Sessions Interview Training
BBR 2024 Summer Sessions Interview Training
Katrina Pritchard
 
Wound healing PPT
Wound healing PPTWound healing PPT
Wound healing PPT
Jyoti Chand
 
BÀI TẬP DẠY THÊM TIẾNG ANH LỚP 7 CẢ NĂM FRIENDS PLUS SÁCH CHÂN TRỜI SÁNG TẠO ...
BÀI TẬP DẠY THÊM TIẾNG ANH LỚP 7 CẢ NĂM FRIENDS PLUS SÁCH CHÂN TRỜI SÁNG TẠO ...BÀI TẬP DẠY THÊM TIẾNG ANH LỚP 7 CẢ NĂM FRIENDS PLUS SÁCH CHÂN TRỜI SÁNG TẠO ...
BÀI TẬP DẠY THÊM TIẾNG ANH LỚP 7 CẢ NĂM FRIENDS PLUS SÁCH CHÂN TRỜI SÁNG TẠO ...
Nguyen Thanh Tu Collection
 
Beyond Degrees - Empowering the Workforce in the Context of Skills-First.pptx
Beyond Degrees - Empowering the Workforce in the Context of Skills-First.pptxBeyond Degrees - Empowering the Workforce in the Context of Skills-First.pptx
Beyond Degrees - Empowering the Workforce in the Context of Skills-First.pptx
EduSkills OECD
 
Pengantar Penggunaan Flutter - Dart programming language1.pptx
Pengantar Penggunaan Flutter - Dart programming language1.pptxPengantar Penggunaan Flutter - Dart programming language1.pptx
Pengantar Penggunaan Flutter - Dart programming language1.pptx
Fajar Baskoro
 
RHEOLOGY Physical pharmaceutics-II notes for B.pharm 4th sem students
RHEOLOGY Physical pharmaceutics-II notes for B.pharm 4th sem studentsRHEOLOGY Physical pharmaceutics-II notes for B.pharm 4th sem students
RHEOLOGY Physical pharmaceutics-II notes for B.pharm 4th sem students
Himanshu Rai
 
writing about opinions about Australia the movie
writing about opinions about Australia the moviewriting about opinions about Australia the movie
writing about opinions about Australia the movie
Nicholas Montgomery
 
Walmart Business+ and Spark Good for Nonprofits.pdf
Walmart Business+ and Spark Good for Nonprofits.pdfWalmart Business+ and Spark Good for Nonprofits.pdf
Walmart Business+ and Spark Good for Nonprofits.pdf
TechSoup
 

Recently uploaded (20)

Film vocab for eal 3 students: Australia the movie
Film vocab for eal 3 students: Australia the movieFilm vocab for eal 3 students: Australia the movie
Film vocab for eal 3 students: Australia the movie
 
Pollock and Snow "DEIA in the Scholarly Landscape, Session One: Setting Expec...
Pollock and Snow "DEIA in the Scholarly Landscape, Session One: Setting Expec...Pollock and Snow "DEIA in the Scholarly Landscape, Session One: Setting Expec...
Pollock and Snow "DEIA in the Scholarly Landscape, Session One: Setting Expec...
 
BÀI TẬP BỔ TRỢ TIẾNG ANH 8 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2023-2024 (CÓ FI...
BÀI TẬP BỔ TRỢ TIẾNG ANH 8 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2023-2024 (CÓ FI...BÀI TẬP BỔ TRỢ TIẾNG ANH 8 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2023-2024 (CÓ FI...
BÀI TẬP BỔ TRỢ TIẾNG ANH 8 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2023-2024 (CÓ FI...
 
UGC NET Exam Paper 1- Unit 1:Teaching Aptitude
UGC NET Exam Paper 1- Unit 1:Teaching AptitudeUGC NET Exam Paper 1- Unit 1:Teaching Aptitude
UGC NET Exam Paper 1- Unit 1:Teaching Aptitude
 
Cognitive Development Adolescence Psychology
Cognitive Development Adolescence PsychologyCognitive Development Adolescence Psychology
Cognitive Development Adolescence Psychology
 
Chapter wise All Notes of First year Basic Civil Engineering.pptx
Chapter wise All Notes of First year Basic Civil Engineering.pptxChapter wise All Notes of First year Basic Civil Engineering.pptx
Chapter wise All Notes of First year Basic Civil Engineering.pptx
 
BÀI TẬP BỔ TRỢ TIẾNG ANH LỚP 9 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2024-2025 - ...
BÀI TẬP BỔ TRỢ TIẾNG ANH LỚP 9 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2024-2025 - ...BÀI TẬP BỔ TRỢ TIẾNG ANH LỚP 9 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2024-2025 - ...
BÀI TẬP BỔ TRỢ TIẾNG ANH LỚP 9 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2024-2025 - ...
 
spot a liar (Haiqa 146).pptx Technical writhing and presentation skills
spot a liar (Haiqa 146).pptx Technical writhing and presentation skillsspot a liar (Haiqa 146).pptx Technical writhing and presentation skills
spot a liar (Haiqa 146).pptx Technical writhing and presentation skills
 
How to Make a Field Mandatory in Odoo 17
How to Make a Field Mandatory in Odoo 17How to Make a Field Mandatory in Odoo 17
How to Make a Field Mandatory in Odoo 17
 
NEWSPAPERS - QUESTION 1 - REVISION POWERPOINT.pptx
NEWSPAPERS - QUESTION 1 - REVISION POWERPOINT.pptxNEWSPAPERS - QUESTION 1 - REVISION POWERPOINT.pptx
NEWSPAPERS - QUESTION 1 - REVISION POWERPOINT.pptx
 
বাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdf
বাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdfবাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdf
বাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdf
 
Digital Artefact 1 - Tiny Home Environmental Design
Digital Artefact 1 - Tiny Home Environmental DesignDigital Artefact 1 - Tiny Home Environmental Design
Digital Artefact 1 - Tiny Home Environmental Design
 
BBR 2024 Summer Sessions Interview Training
BBR  2024 Summer Sessions Interview TrainingBBR  2024 Summer Sessions Interview Training
BBR 2024 Summer Sessions Interview Training
 
Wound healing PPT
Wound healing PPTWound healing PPT
Wound healing PPT
 
BÀI TẬP DẠY THÊM TIẾNG ANH LỚP 7 CẢ NĂM FRIENDS PLUS SÁCH CHÂN TRỜI SÁNG TẠO ...
BÀI TẬP DẠY THÊM TIẾNG ANH LỚP 7 CẢ NĂM FRIENDS PLUS SÁCH CHÂN TRỜI SÁNG TẠO ...BÀI TẬP DẠY THÊM TIẾNG ANH LỚP 7 CẢ NĂM FRIENDS PLUS SÁCH CHÂN TRỜI SÁNG TẠO ...
BÀI TẬP DẠY THÊM TIẾNG ANH LỚP 7 CẢ NĂM FRIENDS PLUS SÁCH CHÂN TRỜI SÁNG TẠO ...
 
Beyond Degrees - Empowering the Workforce in the Context of Skills-First.pptx
Beyond Degrees - Empowering the Workforce in the Context of Skills-First.pptxBeyond Degrees - Empowering the Workforce in the Context of Skills-First.pptx
Beyond Degrees - Empowering the Workforce in the Context of Skills-First.pptx
 
Pengantar Penggunaan Flutter - Dart programming language1.pptx
Pengantar Penggunaan Flutter - Dart programming language1.pptxPengantar Penggunaan Flutter - Dart programming language1.pptx
Pengantar Penggunaan Flutter - Dart programming language1.pptx
 
RHEOLOGY Physical pharmaceutics-II notes for B.pharm 4th sem students
RHEOLOGY Physical pharmaceutics-II notes for B.pharm 4th sem studentsRHEOLOGY Physical pharmaceutics-II notes for B.pharm 4th sem students
RHEOLOGY Physical pharmaceutics-II notes for B.pharm 4th sem students
 
writing about opinions about Australia the movie
writing about opinions about Australia the moviewriting about opinions about Australia the movie
writing about opinions about Australia the movie
 
Walmart Business+ and Spark Good for Nonprofits.pdf
Walmart Business+ and Spark Good for Nonprofits.pdfWalmart Business+ and Spark Good for Nonprofits.pdf
Walmart Business+ and Spark Good for Nonprofits.pdf
 

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