SlideShare ist ein Scribd-Unternehmen logo
1 von 45
Introduction to JAVA
Java J2EE Training
Introduction to Java
• Java History
• Features of Java
• Java Versions
• Application Area
Features Of Java
• S imp le
• O b jec t -O riented
• Platform
in d ep en d ent
• S ec u red
• Rob u st
• A rc h itec tu re
neutral
• Portab le
• Dy n amic
• Interp reted
• High Performance
• Mu ltith read ed
• Distrib u ted
History of Java
• James Gosling, Mike Sheridan, and Patrick Naughton initiated the
Java language project in June 1991. The small team of sun
engineers called Green Team.
• Originally designed for small, embedded systems in electronic
appliances like set-top boxes.
• Firstly, it was called "Greentalk" by James Gosling and file
extension was .gt.
• After that, it was called Oak and was developed as a part of the
Green project.
• Originally developed by James Gosling at Sun Microsystems (which
is now a subsidiary of Oracle Corporation)
James Gosling
Features Of Java
• Simple
– Similar to C and C++
– Omits operator overloading, multiple inheritance
– Goto statement is eliminated
– Header files are eliminated
– Explicit use of pointers
– Garbage collection
– A rich set of predefined classes
Features Of Java
• Object-Oriented
– Forces the programmer to use the classes and object
– Class
• Member variables( data ) and member functions ( methods )
Features Of Java
• Robust
– designed for writing highly reliable or robust software:
– automatic garbage collection, which prevents memory
leaks
– Type safety of data
– Extensive compile tome and runtime checking
– Object Oriented Exception Handling of run
time errors
• Divide by zero exception.
Features Of Java
• Architectural Neutral and Interpreted
– compiler generates bytecodes
– Easy to interpret on any machine
– “Write once and run anywhere WORA”
Features Of Java
• Powerful
– Networking
– Threads
– Distributed Objects
– Database Access
– Graphics
– Data structure library
– Serialization
– Digital Signatures
Features Of Java
• Java is Popular
Features Of Java
• Distributed
– Supports TCP/IP
– RMI
– Access remote objects
via URL
RMI
Features of Java
• MultiThreaded
– Parallel processing
Eg: Winword application saving document
every 10 minutes using thread
Major Java Editions
• Standard Edition
• Enterprise Edition
• Micro Edition
Major Java Editions
• Standard Edition
• Applications
– Desktop programing
– Applets, Java FX
– Big Data Apps
• Examples
– MindCraft
– Eclipse, Netbeans
– GWT
Features Of Java
• Enterprise Edition
– Java EE ( formerly J2EE )
• Applications
– Servlets, JSP, JSF, PrimeFaces
– EJB, Spring and Hibernate
• Examples
– Amazon.com
– Ebay
– Paypal
Features Of Java
• Java Micro Edition
– Java running on small devices
• Applications
– CellPhones,embedded, printers
• Examples
– Blackberry, android( optimized java SE )
Java SE Versions
Year Version Platform CodeName Features
1996 1 1.0
1997 1.1 1
1998 1.2 2 Playground Swings, Frameworks
2000 1.3 2 Kestrel Assertion, chained exceptions
2002 1.4 2 Merlin
2004 1.5 5 Tiger Generics, Varargs,
Printf, Enhanced for loop
2006 1.6 6 Mustang Updates to collection and swing
2011 1.7 7 Dolphin Diamond operator, Strings in swich
Try-with resources
2014 1.8 8 - Lambda for functional programing,
Streams for bulk updates
JDK8
• Java development kit
– Bundle of software components that are needed to
develop java application
– JDK consists
• Java Compiler ( javac )
• Java Interpreter (java)
• Java debugger
• Java applet viewer
• Javap
JVM
• The JVM is an abstract computing machine
• It is responsible for Java's cross-platform portability
JRE
• The JRE is the software environment in which programs
compiled for a typical JVM implementation can execute
• Implementation of the JVM
• Code necessary to run Java programs
• dynamically link native methods
• manage memory
• handle exceptions
JIT
JIT ( Just In Time Compiler)
Object Oriented Programing
• Object Oriented methodology
• Advantages of object oriented approach
• Features of Object Oriented approach
Object Oriented Programing
• Software development methodology
• Maps to real world objects
– Graphics Car  Real Cal
• Revolves around objects and classes
• Object can communicate with each other
• Software is divided into modules
• Arranges the object in hierarchy.
Object Oriented Programing
• Consists of classes and object.
• Object communicates with each other by passing messages
What is an
object????
Object Oriented Programing
• Object is an instance of class
• Object is an real time entity
– State
– Behavior
– Identity
NotePad Code{
filename
Text:
readOnly
Open()
Close()
Minimize()
Maxmize
Save()
}
Object = Instance Of Notepad
Object States
An Object has state and behavior
Objects
• Objects have state and behavior
– State: What an object knows about itself
– Behavior :What an object can do.
Object Name
State = charecterstics
Behaviour:
Dog
State:
Name
Breed
Height
Weight
Behaviour:
eat()
run()
walk()
Classes
• Collection of objects wheelsSeats
Car Music
GearsA.C
Engine
Class
• Class consists of
– Member variables and member methods.
– State/ characteristics is represented via member variables
– Member methods defines the responsibility of the class
– Data within object represents its state.
– Messaging Application
• State-> Member Variables
– To:
– Text:
• Behaviour – Member functions
– sendSms
– Forward
– delete
Class
• Class is blue print
– Logical structure
– Set of instructions given to JVM , how to create instance ( object ) out
of it.
Messages
To
Text
sendSms
Forward
cancel
Messages1: Tom
To : 123-456-7896
Text : Hi Tom,
sendSms
Forward
cancel
Messages2: Jack
To : 478-963-7896
Text : Hi Jack
sendSms
Save
Delete
Class
Object
Tom Object
Jack
Classes and Objects
• Object communicates with each other by
sending messages.
– Bat Communicates with ball.
Quiz
• John is designing a contact management system . Application
should store the details of a person such as ( name, number,
email ) . User should be able to add a contact ,update a
contact and delete a contact.
Name of the class:
Data to be recored.
Functionality of contact management system.
Contacts
Name:
Number
email
createContact
updateContact
deleteContact
Contacts1: Tom
Name: Tom
Number : 456-789-7895
Email :tom@gmail.com
createContact
updateContact
deleteContact
Contacts2: Jack
Name: Jack
Number 789-896-8965
Email: jack@gmail.com
createContact
updateContact
deleteContact
Quiz
Identify the possible states of a computer
Hint: A) Sleep
Identify the possible state of a media player
Question
John, is developing a Calculator application. The application
should accept two numbers from the user and perform addition,
subtraction, multiplication and division on the numbers entered
by the user. Help John to design the problem.
Advantages Of Object Oriented
Approach
• Realistic Modelling
Advantages Of Object Oriented
Programing
• Realistic Modelling
Bike
String color;
String model;
Integer speed;
Accelerate()
Decelerate()
Break()
Advantages Of Object Oriented
Approach
• Code Reusability
Contacts1: Tom
Name: Tom
Number : 456-789-
7895
Email
:tom@gmail.com
createContact
updateContact
deleteContact
Features Of Object Oriented
Programing
• Flexibility to change:
WordAppV1
WordAppV2
Features Of Object Oriented
• Modularity
Features
• Information Hiding
– The basic idea is that if code chunk A doesn't
really need to know something about how code
chunk B (which it calls) does its job, don't make it
know it. Then, when that part of B changes, you
don't have to go back and change A

Weitere ähnliche Inhalte

Was ist angesagt? (17)

Core java lessons
Core java lessonsCore java lessons
Core java lessons
 
Java basic introduction
Java basic introductionJava basic introduction
Java basic introduction
 
Introduction to JAVA
Introduction to JAVAIntroduction to JAVA
Introduction to JAVA
 
Introduction to java
Introduction to javaIntroduction to java
Introduction to java
 
Introduction To Java.
Introduction To Java.Introduction To Java.
Introduction To Java.
 
Introduction to java
Introduction to java Introduction to java
Introduction to java
 
Core Java
Core JavaCore Java
Core Java
 
Java notes
Java notesJava notes
Java notes
 
Java1
Java1Java1
Java1
 
Introduction to java
Introduction to javaIntroduction to java
Introduction to java
 
Basic java tutorial
Basic java tutorialBasic java tutorial
Basic java tutorial
 
Core java
Core javaCore java
Core java
 
Core java online training
Core java online trainingCore java online training
Core java online training
 
Java basic-tutorial for beginners
Java basic-tutorial for beginners Java basic-tutorial for beginners
Java basic-tutorial for beginners
 
Core java course syllabus
Core java course syllabusCore java course syllabus
Core java course syllabus
 
Java basic
Java basicJava basic
Java basic
 
Fundamentals of JAVA
Fundamentals of JAVAFundamentals of JAVA
Fundamentals of JAVA
 

Andere mochten auch

Java J2EE Interview Questions Part 2
Java J2EE Interview Questions Part 2Java J2EE Interview Questions Part 2
Java J2EE Interview Questions Part 2javatrainingonline
 
Java J2EE Interview Questions Part-1
Java J2EE Interview Questions Part-1Java J2EE Interview Questions Part-1
Java J2EE Interview Questions Part-1javatrainingonline
 
Programing - 2nd B - IT - UTTN
Programing - 2nd B - IT - UTTNPrograming - 2nd B - IT - UTTN
Programing - 2nd B - IT - UTTNMabel Singlaterry
 
01 Java Is Architecture Neutral
01 Java Is Architecture Neutral01 Java Is Architecture Neutral
01 Java Is Architecture Neutralrajuglobal
 
Introduction to java
Introduction to javaIntroduction to java
Introduction to javaASU Online
 
High Performance Data Analytics with Java on Large Multicore HPC Clusters
High Performance Data Analytics with Java on Large Multicore HPC ClustersHigh Performance Data Analytics with Java on Large Multicore HPC Clusters
High Performance Data Analytics with Java on Large Multicore HPC ClustersSaliya Ekanayake
 
Introduction to java Programming
Introduction to java ProgrammingIntroduction to java Programming
Introduction to java ProgrammingAhmed Ayman
 
OCA Java SE 8 Exam Chapter 2 Operators & Statements
OCA Java SE 8 Exam Chapter 2 Operators & StatementsOCA Java SE 8 Exam Chapter 2 Operators & Statements
OCA Java SE 8 Exam Chapter 2 Operators & Statementsİbrahim Kürce
 
Clojure - An Introduction for Java Programmers
Clojure - An Introduction for Java ProgrammersClojure - An Introduction for Java Programmers
Clojure - An Introduction for Java Programmerselliando dias
 
OCA Java SE 8 Exam Chapter 3 Core Java APIs
OCA Java SE 8 Exam Chapter 3 Core Java APIsOCA Java SE 8 Exam Chapter 3 Core Java APIs
OCA Java SE 8 Exam Chapter 3 Core Java APIsİbrahim Kürce
 
OCA Java SE 8 Exam Chapter 1 Java Building Blocks
OCA Java SE 8 Exam Chapter 1 Java Building BlocksOCA Java SE 8 Exam Chapter 1 Java Building Blocks
OCA Java SE 8 Exam Chapter 1 Java Building Blocksİbrahim Kürce
 
Stefan Richter - Writing simple, readable and robust code: Examples in Java, ...
Stefan Richter - Writing simple, readable and robust code: Examples in Java, ...Stefan Richter - Writing simple, readable and robust code: Examples in Java, ...
Stefan Richter - Writing simple, readable and robust code: Examples in Java, ...AboutYouGmbH
 
An Introduction To Java Profiling
An Introduction To Java ProfilingAn Introduction To Java Profiling
An Introduction To Java Profilingschlebu
 
Introduction to Java Programming
Introduction to Java ProgrammingIntroduction to Java Programming
Introduction to Java ProgrammingPokequesthero
 

Andere mochten auch (20)

Java J2EE Interview Questions Part 2
Java J2EE Interview Questions Part 2Java J2EE Interview Questions Part 2
Java J2EE Interview Questions Part 2
 
Java J2EE Interview Questions Part-1
Java J2EE Interview Questions Part-1Java J2EE Interview Questions Part-1
Java J2EE Interview Questions Part-1
 
Introduction to java
Introduction to javaIntroduction to java
Introduction to java
 
Programing - 2nd B - IT - UTTN
Programing - 2nd B - IT - UTTNPrograming - 2nd B - IT - UTTN
Programing - 2nd B - IT - UTTN
 
01 Java Is Architecture Neutral
01 Java Is Architecture Neutral01 Java Is Architecture Neutral
01 Java Is Architecture Neutral
 
Java training in delhi
Java training in delhiJava training in delhi
Java training in delhi
 
Oops in c
Oops in cOops in c
Oops in c
 
Introduction to java
Introduction to javaIntroduction to java
Introduction to java
 
High Performance Data Analytics with Java on Large Multicore HPC Clusters
High Performance Data Analytics with Java on Large Multicore HPC ClustersHigh Performance Data Analytics with Java on Large Multicore HPC Clusters
High Performance Data Analytics with Java on Large Multicore HPC Clusters
 
Introduction to java Programming
Introduction to java ProgrammingIntroduction to java Programming
Introduction to java Programming
 
OCA Java SE 8 Exam Chapter 2 Operators & Statements
OCA Java SE 8 Exam Chapter 2 Operators & StatementsOCA Java SE 8 Exam Chapter 2 Operators & Statements
OCA Java SE 8 Exam Chapter 2 Operators & Statements
 
Clojure - An Introduction for Java Programmers
Clojure - An Introduction for Java ProgrammersClojure - An Introduction for Java Programmers
Clojure - An Introduction for Java Programmers
 
OCA Java SE 8 Exam Chapter 3 Core Java APIs
OCA Java SE 8 Exam Chapter 3 Core Java APIsOCA Java SE 8 Exam Chapter 3 Core Java APIs
OCA Java SE 8 Exam Chapter 3 Core Java APIs
 
OCA Java SE 8 Exam Chapter 1 Java Building Blocks
OCA Java SE 8 Exam Chapter 1 Java Building BlocksOCA Java SE 8 Exam Chapter 1 Java Building Blocks
OCA Java SE 8 Exam Chapter 1 Java Building Blocks
 
Stefan Richter - Writing simple, readable and robust code: Examples in Java, ...
Stefan Richter - Writing simple, readable and robust code: Examples in Java, ...Stefan Richter - Writing simple, readable and robust code: Examples in Java, ...
Stefan Richter - Writing simple, readable and robust code: Examples in Java, ...
 
Java features
Java featuresJava features
Java features
 
An Introduction To Java Profiling
An Introduction To Java ProfilingAn Introduction To Java Profiling
An Introduction To Java Profiling
 
Features of java
Features of javaFeatures of java
Features of java
 
Introduction to Java Programming
Introduction to Java ProgrammingIntroduction to Java Programming
Introduction to Java Programming
 
Java Basics
Java BasicsJava Basics
Java Basics
 

Ähnlich wie Introduction to JAVA

Introduction to Java
Introduction to JavaIntroduction to Java
Introduction to JavaAathikaJava
 
Introduction to Java
Introduction to JavaIntroduction to Java
Introduction to JavaDeeptiJava
 
Java Programming concept
Java Programming concept Java Programming concept
Java Programming concept Prakash Poudel
 
Lecture-01 _Java Introduction CS 441 Fast
Lecture-01 _Java Introduction CS 441 FastLecture-01 _Java Introduction CS 441 Fast
Lecture-01 _Java Introduction CS 441 FastUzairSaeed18
 
Java- Java tech overview- Mazenet solution
Java- Java tech overview- Mazenet solutionJava- Java tech overview- Mazenet solution
Java- Java tech overview- Mazenet solutionMazenetsolution
 
JAVA object oriented programming (oop).ppt
JAVA object oriented programming (oop).pptJAVA object oriented programming (oop).ppt
JAVA object oriented programming (oop).pptAliyaJav
 
The Why and How of Scala at Twitter
The Why and How of Scala at TwitterThe Why and How of Scala at Twitter
The Why and How of Scala at TwitterAlex Payne
 
Introduction to java (revised)
Introduction to java (revised)Introduction to java (revised)
Introduction to java (revised)Sujit Majety
 
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 3rdprat0ham
 
Introduction to Java Part-2
Introduction to Java Part-2Introduction to Java Part-2
Introduction to Java Part-2RatnaJava
 
Java 8 selected updates
Java 8 selected updatesJava 8 selected updates
Java 8 selected updatesVinay H G
 
1 Introduction to JAVA.pptx
1 Introduction to JAVA.pptx1 Introduction to JAVA.pptx
1 Introduction to JAVA.pptxKabiles07
 

Ähnlich wie Introduction to JAVA (20)

Introduction to Java
Introduction to JavaIntroduction to Java
Introduction to Java
 
Introduction to Java
Introduction to JavaIntroduction to Java
Introduction to Java
 
CS8392 OOP
CS8392 OOPCS8392 OOP
CS8392 OOP
 
Java Programming concept
Java Programming concept Java Programming concept
Java Programming concept
 
Letest
LetestLetest
Letest
 
oop unit1.pptx
oop unit1.pptxoop unit1.pptx
oop unit1.pptx
 
Lecture-01 _Java Introduction CS 441 Fast
Lecture-01 _Java Introduction CS 441 FastLecture-01 _Java Introduction CS 441 Fast
Lecture-01 _Java Introduction CS 441 Fast
 
Java- Java tech overview- Mazenet solution
Java- Java tech overview- Mazenet solutionJava- Java tech overview- Mazenet solution
Java- Java tech overview- Mazenet solution
 
JAVA object oriented programming (oop).ppt
JAVA object oriented programming (oop).pptJAVA object oriented programming (oop).ppt
JAVA object oriented programming (oop).ppt
 
The Why and How of Scala at Twitter
The Why and How of Scala at TwitterThe Why and How of Scala at Twitter
The Why and How of Scala at Twitter
 
Introduction to java (revised)
Introduction to java (revised)Introduction to java (revised)
Introduction to java (revised)
 
L1 basics
L1 basicsL1 basics
L1 basics
 
Java1 in mumbai
Java1 in mumbaiJava1 in mumbai
Java1 in mumbai
 
01 java intro
01 java intro01 java intro
01 java intro
 
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
 
Comp102 lec 3
Comp102   lec 3Comp102   lec 3
Comp102 lec 3
 
Introduction to Java Part-2
Introduction to Java Part-2Introduction to Java Part-2
Introduction to Java Part-2
 
The Java Story
The Java StoryThe Java Story
The Java Story
 
Java 8 selected updates
Java 8 selected updatesJava 8 selected updates
Java 8 selected updates
 
1 Introduction to JAVA.pptx
1 Introduction to JAVA.pptx1 Introduction to JAVA.pptx
1 Introduction to JAVA.pptx
 

Kürzlich hochgeladen

MarTech Trend 2024 Book : Marketing Technology Trends (2024 Edition) How Data...
MarTech Trend 2024 Book : Marketing Technology Trends (2024 Edition) How Data...MarTech Trend 2024 Book : Marketing Technology Trends (2024 Edition) How Data...
MarTech Trend 2024 Book : Marketing Technology Trends (2024 Edition) How Data...Jittipong Loespradit
 
The title is not connected to what is inside
The title is not connected to what is insideThe title is not connected to what is inside
The title is not connected to what is insideshinachiaurasa2
 
Introducing Microsoft’s new Enterprise Work Management (EWM) Solution
Introducing Microsoft’s new Enterprise Work Management (EWM) SolutionIntroducing Microsoft’s new Enterprise Work Management (EWM) Solution
Introducing Microsoft’s new Enterprise Work Management (EWM) SolutionOnePlan Solutions
 
ManageIQ - Sprint 236 Review - Slide Deck
ManageIQ - Sprint 236 Review - Slide DeckManageIQ - Sprint 236 Review - Slide Deck
ManageIQ - Sprint 236 Review - Slide DeckManageIQ
 
Sector 18, Noida Call girls :8448380779 Model Escorts | 100% verified
Sector 18, Noida Call girls :8448380779 Model Escorts | 100% verifiedSector 18, Noida Call girls :8448380779 Model Escorts | 100% verified
Sector 18, Noida Call girls :8448380779 Model Escorts | 100% verifiedDelhi Call girls
 
Right Money Management App For Your Financial Goals
Right Money Management App For Your Financial GoalsRight Money Management App For Your Financial Goals
Right Money Management App For Your Financial GoalsJhone kinadey
 
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.pdfkalichargn70th171
 
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 🔝✔️✔️Delhi Call girls
 
Chinsurah Escorts ☎️8617697112 Starting From 5K to 15K High Profile Escorts ...
Chinsurah Escorts ☎️8617697112  Starting From 5K to 15K High Profile Escorts ...Chinsurah Escorts ☎️8617697112  Starting From 5K to 15K High Profile Escorts ...
Chinsurah Escorts ☎️8617697112 Starting From 5K to 15K High Profile Escorts ...Nitya salvi
 
The Top App Development Trends Shaping the Industry in 2024-25 .pdf
The Top App Development Trends Shaping the Industry in 2024-25 .pdfThe Top App Development Trends Shaping the Industry in 2024-25 .pdf
The Top App Development Trends Shaping the Industry in 2024-25 .pdfayushiqss
 
Payment Gateway Testing Simplified_ A Step-by-Step Guide for Beginners.pdf
Payment Gateway Testing Simplified_ A Step-by-Step Guide for Beginners.pdfPayment Gateway Testing Simplified_ A Step-by-Step Guide for Beginners.pdf
Payment Gateway Testing Simplified_ A Step-by-Step Guide for Beginners.pdfkalichargn70th171
 
%in ivory park+277-882-255-28 abortion pills for sale in ivory park
%in ivory park+277-882-255-28 abortion pills for sale in ivory park %in ivory park+277-882-255-28 abortion pills for sale in ivory park
%in ivory park+277-882-255-28 abortion pills for sale in ivory park masabamasaba
 
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.pdfproinshot.com
 
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.docxComplianceQuest1
 
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 WorkerThousandEyes
 
%in Bahrain+277-882-255-28 abortion pills for sale in Bahrain
%in Bahrain+277-882-255-28 abortion pills for sale in Bahrain%in Bahrain+277-882-255-28 abortion pills for sale in Bahrain
%in Bahrain+277-882-255-28 abortion pills for sale in Bahrainmasabamasaba
 
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...kalichargn70th171
 
%in kaalfontein+277-882-255-28 abortion pills for sale in kaalfontein
%in kaalfontein+277-882-255-28 abortion pills for sale in kaalfontein%in kaalfontein+277-882-255-28 abortion pills for sale in kaalfontein
%in kaalfontein+277-882-255-28 abortion pills for sale in kaalfonteinmasabamasaba
 
AI Mastery 201: Elevating Your Workflow with Advanced LLM Techniques
AI Mastery 201: Elevating Your Workflow with Advanced LLM TechniquesAI Mastery 201: Elevating Your Workflow with Advanced LLM Techniques
AI Mastery 201: Elevating Your Workflow with Advanced LLM TechniquesVictorSzoltysek
 

Kürzlich hochgeladen (20)

MarTech Trend 2024 Book : Marketing Technology Trends (2024 Edition) How Data...
MarTech Trend 2024 Book : Marketing Technology Trends (2024 Edition) How Data...MarTech Trend 2024 Book : Marketing Technology Trends (2024 Edition) How Data...
MarTech Trend 2024 Book : Marketing Technology Trends (2024 Edition) How Data...
 
The title is not connected to what is inside
The title is not connected to what is insideThe title is not connected to what is inside
The title is not connected to what is inside
 
Introducing Microsoft’s new Enterprise Work Management (EWM) Solution
Introducing Microsoft’s new Enterprise Work Management (EWM) SolutionIntroducing Microsoft’s new Enterprise Work Management (EWM) Solution
Introducing Microsoft’s new Enterprise Work Management (EWM) Solution
 
ManageIQ - Sprint 236 Review - Slide Deck
ManageIQ - Sprint 236 Review - Slide DeckManageIQ - Sprint 236 Review - Slide Deck
ManageIQ - Sprint 236 Review - Slide Deck
 
Sector 18, Noida Call girls :8448380779 Model Escorts | 100% verified
Sector 18, Noida Call girls :8448380779 Model Escorts | 100% verifiedSector 18, Noida Call girls :8448380779 Model Escorts | 100% verified
Sector 18, Noida Call girls :8448380779 Model Escorts | 100% verified
 
Right Money Management App For Your Financial Goals
Right Money Management App For Your Financial GoalsRight Money Management App For Your Financial Goals
Right Money Management App For Your Financial Goals
 
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
 
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 🔝✔️✔️
 
Chinsurah Escorts ☎️8617697112 Starting From 5K to 15K High Profile Escorts ...
Chinsurah Escorts ☎️8617697112  Starting From 5K to 15K High Profile Escorts ...Chinsurah Escorts ☎️8617697112  Starting From 5K to 15K High Profile Escorts ...
Chinsurah Escorts ☎️8617697112 Starting From 5K to 15K High Profile Escorts ...
 
The Top App Development Trends Shaping the Industry in 2024-25 .pdf
The Top App Development Trends Shaping the Industry in 2024-25 .pdfThe Top App Development Trends Shaping the Industry in 2024-25 .pdf
The Top App Development Trends Shaping the Industry in 2024-25 .pdf
 
Microsoft AI Transformation Partner Playbook.pdf
Microsoft AI Transformation Partner Playbook.pdfMicrosoft AI Transformation Partner Playbook.pdf
Microsoft AI Transformation Partner Playbook.pdf
 
Payment Gateway Testing Simplified_ A Step-by-Step Guide for Beginners.pdf
Payment Gateway Testing Simplified_ A Step-by-Step Guide for Beginners.pdfPayment Gateway Testing Simplified_ A Step-by-Step Guide for Beginners.pdf
Payment Gateway Testing Simplified_ A Step-by-Step Guide for Beginners.pdf
 
%in ivory park+277-882-255-28 abortion pills for sale in ivory park
%in ivory park+277-882-255-28 abortion pills for sale in ivory park %in ivory park+277-882-255-28 abortion pills for sale in ivory park
%in ivory park+277-882-255-28 abortion pills for sale in ivory park
 
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
 
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
 
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
 
%in Bahrain+277-882-255-28 abortion pills for sale in Bahrain
%in Bahrain+277-882-255-28 abortion pills for sale in Bahrain%in Bahrain+277-882-255-28 abortion pills for sale in Bahrain
%in Bahrain+277-882-255-28 abortion pills for sale in Bahrain
 
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...
 
%in kaalfontein+277-882-255-28 abortion pills for sale in kaalfontein
%in kaalfontein+277-882-255-28 abortion pills for sale in kaalfontein%in kaalfontein+277-882-255-28 abortion pills for sale in kaalfontein
%in kaalfontein+277-882-255-28 abortion pills for sale in kaalfontein
 
AI Mastery 201: Elevating Your Workflow with Advanced LLM Techniques
AI Mastery 201: Elevating Your Workflow with Advanced LLM TechniquesAI Mastery 201: Elevating Your Workflow with Advanced LLM Techniques
AI Mastery 201: Elevating Your Workflow with Advanced LLM Techniques
 

Introduction to JAVA

  • 2. Introduction to Java • Java History • Features of Java • Java Versions • Application Area
  • 3. Features Of Java • S imp le • O b jec t -O riented • Platform in d ep en d ent • S ec u red • Rob u st • A rc h itec tu re neutral • Portab le • Dy n amic • Interp reted • High Performance • Mu ltith read ed • Distrib u ted
  • 4. History of Java • James Gosling, Mike Sheridan, and Patrick Naughton initiated the Java language project in June 1991. The small team of sun engineers called Green Team. • Originally designed for small, embedded systems in electronic appliances like set-top boxes. • Firstly, it was called "Greentalk" by James Gosling and file extension was .gt. • After that, it was called Oak and was developed as a part of the Green project. • Originally developed by James Gosling at Sun Microsystems (which is now a subsidiary of Oracle Corporation)
  • 6. Features Of Java • Simple – Similar to C and C++ – Omits operator overloading, multiple inheritance – Goto statement is eliminated – Header files are eliminated – Explicit use of pointers – Garbage collection – A rich set of predefined classes
  • 7. Features Of Java • Object-Oriented – Forces the programmer to use the classes and object – Class • Member variables( data ) and member functions ( methods )
  • 8. Features Of Java • Robust – designed for writing highly reliable or robust software: – automatic garbage collection, which prevents memory leaks – Type safety of data – Extensive compile tome and runtime checking – Object Oriented Exception Handling of run time errors • Divide by zero exception.
  • 9. Features Of Java • Architectural Neutral and Interpreted – compiler generates bytecodes – Easy to interpret on any machine – “Write once and run anywhere WORA”
  • 10. Features Of Java • Powerful – Networking – Threads – Distributed Objects – Database Access – Graphics – Data structure library – Serialization – Digital Signatures
  • 11. Features Of Java • Java is Popular
  • 12. Features Of Java • Distributed – Supports TCP/IP – RMI – Access remote objects via URL
  • 13. RMI
  • 14. Features of Java • MultiThreaded – Parallel processing Eg: Winword application saving document every 10 minutes using thread
  • 15. Major Java Editions • Standard Edition • Enterprise Edition • Micro Edition
  • 16. Major Java Editions • Standard Edition • Applications – Desktop programing – Applets, Java FX – Big Data Apps • Examples – MindCraft – Eclipse, Netbeans – GWT
  • 17. Features Of Java • Enterprise Edition – Java EE ( formerly J2EE ) • Applications – Servlets, JSP, JSF, PrimeFaces – EJB, Spring and Hibernate • Examples – Amazon.com – Ebay – Paypal
  • 18. Features Of Java • Java Micro Edition – Java running on small devices • Applications – CellPhones,embedded, printers • Examples – Blackberry, android( optimized java SE )
  • 19. Java SE Versions Year Version Platform CodeName Features 1996 1 1.0 1997 1.1 1 1998 1.2 2 Playground Swings, Frameworks 2000 1.3 2 Kestrel Assertion, chained exceptions 2002 1.4 2 Merlin 2004 1.5 5 Tiger Generics, Varargs, Printf, Enhanced for loop 2006 1.6 6 Mustang Updates to collection and swing 2011 1.7 7 Dolphin Diamond operator, Strings in swich Try-with resources 2014 1.8 8 - Lambda for functional programing, Streams for bulk updates
  • 20. JDK8 • Java development kit – Bundle of software components that are needed to develop java application – JDK consists • Java Compiler ( javac ) • Java Interpreter (java) • Java debugger • Java applet viewer • Javap
  • 21. JVM • The JVM is an abstract computing machine • It is responsible for Java's cross-platform portability
  • 22. JRE • The JRE is the software environment in which programs compiled for a typical JVM implementation can execute • Implementation of the JVM • Code necessary to run Java programs • dynamically link native methods • manage memory • handle exceptions
  • 23. JIT
  • 24. JIT ( Just In Time Compiler)
  • 25. Object Oriented Programing • Object Oriented methodology • Advantages of object oriented approach • Features of Object Oriented approach
  • 26. Object Oriented Programing • Software development methodology • Maps to real world objects – Graphics Car  Real Cal • Revolves around objects and classes • Object can communicate with each other • Software is divided into modules • Arranges the object in hierarchy.
  • 27. Object Oriented Programing • Consists of classes and object. • Object communicates with each other by passing messages What is an object????
  • 28. Object Oriented Programing • Object is an instance of class • Object is an real time entity – State – Behavior – Identity NotePad Code{ filename Text: readOnly Open() Close() Minimize() Maxmize Save() } Object = Instance Of Notepad
  • 29. Object States An Object has state and behavior
  • 30. Objects • Objects have state and behavior – State: What an object knows about itself – Behavior :What an object can do. Object Name State = charecterstics Behaviour: Dog State: Name Breed Height Weight Behaviour: eat() run() walk()
  • 31. Classes • Collection of objects wheelsSeats Car Music GearsA.C Engine
  • 32. Class • Class consists of – Member variables and member methods. – State/ characteristics is represented via member variables – Member methods defines the responsibility of the class – Data within object represents its state. – Messaging Application • State-> Member Variables – To: – Text: • Behaviour – Member functions – sendSms – Forward – delete
  • 33. Class • Class is blue print – Logical structure – Set of instructions given to JVM , how to create instance ( object ) out of it.
  • 34. Messages To Text sendSms Forward cancel Messages1: Tom To : 123-456-7896 Text : Hi Tom, sendSms Forward cancel Messages2: Jack To : 478-963-7896 Text : Hi Jack sendSms Save Delete Class Object Tom Object Jack
  • 35. Classes and Objects • Object communicates with each other by sending messages. – Bat Communicates with ball.
  • 36. Quiz • John is designing a contact management system . Application should store the details of a person such as ( name, number, email ) . User should be able to add a contact ,update a contact and delete a contact. Name of the class: Data to be recored. Functionality of contact management system.
  • 37. Contacts Name: Number email createContact updateContact deleteContact Contacts1: Tom Name: Tom Number : 456-789-7895 Email :tom@gmail.com createContact updateContact deleteContact Contacts2: Jack Name: Jack Number 789-896-8965 Email: jack@gmail.com createContact updateContact deleteContact
  • 38. Quiz Identify the possible states of a computer Hint: A) Sleep Identify the possible state of a media player
  • 39. Question John, is developing a Calculator application. The application should accept two numbers from the user and perform addition, subtraction, multiplication and division on the numbers entered by the user. Help John to design the problem.
  • 40. Advantages Of Object Oriented Approach • Realistic Modelling
  • 41. Advantages Of Object Oriented Programing • Realistic Modelling Bike String color; String model; Integer speed; Accelerate() Decelerate() Break()
  • 42. Advantages Of Object Oriented Approach • Code Reusability Contacts1: Tom Name: Tom Number : 456-789- 7895 Email :tom@gmail.com createContact updateContact deleteContact
  • 43. Features Of Object Oriented Programing • Flexibility to change: WordAppV1 WordAppV2
  • 44. Features Of Object Oriented • Modularity
  • 45. Features • Information Hiding – The basic idea is that if code chunk A doesn't really need to know something about how code chunk B (which it calls) does its job, don't make it know it. Then, when that part of B changes, you don't have to go back and change A