SlideShare a Scribd company logo
1 of 18
JAVA
PROGRAMMING
-V. Prashanthi
11/6/2022 2
• Java is one of the most popular and widely used programming language and platform. A
platform is an environment that helps to develop and run programs written in any
programming language.
• Java is fast, reliable and secure. From desktop to web applications, scientific
supercomputers to gaming consoles, cell phones to the Internet, Java is used in every
nook and corner.
Chapter 1-java evolution
11/6/2022 3
• Java is easy to learn, and its syntax is simple and easy to understand. It is based on C++ (so
easier for programmers who know C++). Java has removed many confusing and rarely-used
features e.g., explicit pointers, operator overloading etc. Java also takes care of memory
management and for that, it provides an automatic garbage collector. This collects the unused
objects automatically.
11/6/2022 4
11/6/2022 5
Java concepts
with
mobile-phone
scenario
6
CHAPTER-2 CLASSES AND OBJECTS
•Mobile-phone is an object because it is a real time entity,
and it has its own state, behavior and identity. Mobile-
phone are manufactured in surplus by various companies
and each of the brands have distinct features.
•Classes in java are logical entities which have methods,
fields, constructors and a lot more. In a mobile-phone,
you can consider its specifications as classes, be it
processor/battery/sensors/basic features like call, text,
record.
11/6/2022 7
Abstraction:
•Revealing relevant/necessary information and hiding the
unwanted information is abstraction.
•In a mobile-phone, dialing a number would call some method
internally which will concatenate the numbers and displays it on
screen but, we don’t know what is happening internally.
•When you tap on the call option, it is sending signals to another
person’s mobile(whom you are trying to call) but we are unaware
of its implementation.
•So, it is hiding the implementation and showing you the
functionality only.
Encapsulation:
•Enclosing one or more details from outside world through
access rights.
•We have Bluetooth in our mobiles to transfer data between two
mobile-phones within a limited distance.
•If I turn on Bluetooth in both mobiles, I can transfer the desired
data, but I can’t access the other mobile’s information like gallery
until and unless I get a permission from the other mobile.
Polymorphism:
•Performing a job in different ways.(One to many)
•We click photographs and record videos using the camera in a mobile-
phone.
•Various brands have a plethora of camera modes in a mobile like split
camera/pan aroma/slow-mo.
•The basic purpose is to click/record, so the functionality of camera is
the same in every mobile, whereas the modes enable you to use your
camera in different ways.
11/6/2022 9
Inheritance:
•One class(sub/child class) is deriving all properties from other
class.(parent class)
•The basic purpose of using a mobile-phone is communication.
•There are several brands in mobiles. So, the brands of a mobile
are using this basic functionality(communication) by extending the
mobile class functionality and adding their own new features to
their respective brands.
 Refer the below site for more concepts:
https://medium.com/front-end-weekly/es6-lets-divide-our-phones-into-
classes-4574bd0454bf
11/6/2022 11
PACKAGES:
Package in Java is a mechanism to encapsulate a group of classes, sub packages and
interfaces
Chapter-3 packages and interfaces
11/6/2022 12
This java android package contains various classes for implementation.
11/6/2022 13
INTERFACE:
An Interface is a group of abstract methods and constants. An Interface
may contain constants, static methods, default methods, and nested
types. Default and static methods have their body in an interface. An
Interface cannot be instantiated
interface Wifi {
void connect();
void disconnect();
}
class Mobile implements Wifi {
public void connect() {
System.out.println("Wifi connected"); }
public void disconnect() {
System.out.println("Wifi disconnected");}
public static void main(String args[]) {
Mobile mobile = new Mobile();
mobile.connect();
mobile.disconnect(); }} //Output
//Wifi connected
///Wifi disconnected
 Java collections refer to a collection of individual objects
that are represented as a single unit. You can perform all
operations such as searching, sorting, insertion,
manipulation, deletion, etc., on Java collections just like
you do it on data.
CHAPTER-4 THE COLLECTION FRAMEWORK
11/6/2022 14
 A Java collection framework provides an
architecture to store and manipulate a group of
objects. A Java collection framework includes the
following:
• Interfaces
• Classes
• Algorithm
11/6/2022 15
LISTS
STACK
QUEUE
GRAPH
SET
chapter-5 MULTITHREADING
• Multithreading is a Java feature that allows concurrent execution of two or more parts
of a program for maximum utilization of CPU. Each part of such program is called a
thread. So, threads are light-weight processes within a process
11/6/2022 16
Accessing multiple tabs using multithreading
11/6/2022 17
• JDBC stands for Java Database Connectivity. JDBC is a Java API to connect and
execute the query with the database. It is a part of Java SE (Java Standard Edition).
JDBC API uses JDBC drivers to connect with the database.
Chapter-6 JDBC
11/6/2022 18
Transaction management [1, 2] refers to the tasks of processing multiple transactions issued by
various clients of a database server in such a way that the ACID contract can be fulfilled, that is,
the properties of atomicity, consistency preservation, isolation, and durability of each individual
transaction can be guaranteed. Transaction management is generally understood as requiring
serializability-based concurrency control as well as recovery from failures.
Paypal uses JAVA for writing application and
transaction management

More Related Content

Similar to JAVA PROGRAMMING (1).pptx

JAVA object oriented programming (oop).ppt
JAVA object oriented programming (oop).pptJAVA object oriented programming (oop).ppt
JAVA object oriented programming (oop).pptAliyaJav
 
Seattle bestpractices2010
Seattle bestpractices2010Seattle bestpractices2010
Seattle bestpractices2010Olaseni Odebiyi
 
Webinar learn how to test any mobile app style from within eclipse using real...
Webinar learn how to test any mobile app style from within eclipse using real...Webinar learn how to test any mobile app style from within eclipse using real...
Webinar learn how to test any mobile app style from within eclipse using real...Perfecto Mobile
 
Demo Lecture 01 Notes.pptx by Sabki Kaksha
Demo Lecture 01 Notes.pptx by Sabki KakshaDemo Lecture 01 Notes.pptx by Sabki Kaksha
Demo Lecture 01 Notes.pptx by Sabki KakshaGandhiSarthak
 
Demo Lecture 01 Notes paid , course notes
Demo Lecture 01 Notes paid , course notesDemo Lecture 01 Notes paid , course notes
Demo Lecture 01 Notes paid , course notesGandhiSarthak
 
JavaFX on Mobile (by Johan Vos)
JavaFX on Mobile (by Johan Vos)JavaFX on Mobile (by Johan Vos)
JavaFX on Mobile (by Johan Vos)Stephen Chin
 
01-Java Introduction.ppt
01-Java Introduction.ppt01-Java Introduction.ppt
01-Java Introduction.pptJyothiAmpally
 
1.INTRODUCTION TO JAVA_2022 MB.ppt .
1.INTRODUCTION TO JAVA_2022 MB.ppt      .1.INTRODUCTION TO JAVA_2022 MB.ppt      .
1.INTRODUCTION TO JAVA_2022 MB.ppt .happycocoman
 
Advance java prasentation
Advance java prasentationAdvance java prasentation
Advance java prasentationdhananajay95
 
Java Introduction | PDF
Java Introduction |  PDFJava Introduction |  PDF
Java Introduction | PDFGeekster
 
Java Training at Gateway Software Solutions,Coimbatore
Java Training at Gateway Software Solutions,CoimbatoreJava Training at Gateway Software Solutions,Coimbatore
Java Training at Gateway Software Solutions,CoimbatoreGateway Software Solutions
 
Mobile applications chapter 5
Mobile applications chapter 5Mobile applications chapter 5
Mobile applications chapter 5Akib B. Momin
 
Basics of JAVA programming
Basics of JAVA programmingBasics of JAVA programming
Basics of JAVA programmingElizabeth Thomas
 

Similar to JAVA PROGRAMMING (1).pptx (20)

JAVA object oriented programming (oop).ppt
JAVA object oriented programming (oop).pptJAVA object oriented programming (oop).ppt
JAVA object oriented programming (oop).ppt
 
Seattle bestpractices2010
Seattle bestpractices2010Seattle bestpractices2010
Seattle bestpractices2010
 
gopal hp
gopal hpgopal hp
gopal hp
 
Webinar learn how to test any mobile app style from within eclipse using real...
Webinar learn how to test any mobile app style from within eclipse using real...Webinar learn how to test any mobile app style from within eclipse using real...
Webinar learn how to test any mobile app style from within eclipse using real...
 
Demo Lecture 01 Notes.pptx by Sabki Kaksha
Demo Lecture 01 Notes.pptx by Sabki KakshaDemo Lecture 01 Notes.pptx by Sabki Kaksha
Demo Lecture 01 Notes.pptx by Sabki Kaksha
 
Demo Lecture 01 Notes paid , course notes
Demo Lecture 01 Notes paid , course notesDemo Lecture 01 Notes paid , course notes
Demo Lecture 01 Notes paid , course notes
 
JavaFX on Mobile (by Johan Vos)
JavaFX on Mobile (by Johan Vos)JavaFX on Mobile (by Johan Vos)
JavaFX on Mobile (by Johan Vos)
 
IBM MobileFirst Platform v7.0 Pot Intro v0.1
IBM MobileFirst Platform v7.0 Pot Intro v0.1IBM MobileFirst Platform v7.0 Pot Intro v0.1
IBM MobileFirst Platform v7.0 Pot Intro v0.1
 
IBM MobileFirst Platform v7.0 pot intro v0.1
IBM MobileFirst Platform v7.0 pot intro v0.1IBM MobileFirst Platform v7.0 pot intro v0.1
IBM MobileFirst Platform v7.0 pot intro v0.1
 
01-Java Introduction.ppt
01-Java Introduction.ppt01-Java Introduction.ppt
01-Java Introduction.ppt
 
1.INTRODUCTION TO JAVA_2022 MB.ppt .
1.INTRODUCTION TO JAVA_2022 MB.ppt      .1.INTRODUCTION TO JAVA_2022 MB.ppt      .
1.INTRODUCTION TO JAVA_2022 MB.ppt .
 
Mobile Application Development class 001
Mobile Application Development class 001Mobile Application Development class 001
Mobile Application Development class 001
 
Advance java prasentation
Advance java prasentationAdvance java prasentation
Advance java prasentation
 
DesktopApps.pptx
DesktopApps.pptxDesktopApps.pptx
DesktopApps.pptx
 
Java Introduction | PDF
Java Introduction |  PDFJava Introduction |  PDF
Java Introduction | PDF
 
Java Training at Gateway Software Solutions,Coimbatore
Java Training at Gateway Software Solutions,CoimbatoreJava Training at Gateway Software Solutions,Coimbatore
Java Training at Gateway Software Solutions,Coimbatore
 
Mobile applications chapter 5
Mobile applications chapter 5Mobile applications chapter 5
Mobile applications chapter 5
 
Java ms harsha
Java ms harshaJava ms harsha
Java ms harsha
 
Basics of JAVA programming
Basics of JAVA programmingBasics of JAVA programming
Basics of JAVA programming
 
FEATURES OF JAVA
FEATURES OF JAVAFEATURES OF JAVA
FEATURES OF JAVA
 

More from Srinivas Kanakala (13)

FLOWCHARTS.pptx
FLOWCHARTS.pptxFLOWCHARTS.pptx
FLOWCHARTS.pptx
 
Minor project ppt (1).pptx
Minor project ppt (1).pptxMinor project ppt (1).pptx
Minor project ppt (1).pptx
 
system hacking.pptx
system hacking.pptxsystem hacking.pptx
system hacking.pptx
 
RDBMS WIT &WIL.pptx
RDBMS WIT &WIL.pptxRDBMS WIT &WIL.pptx
RDBMS WIT &WIL.pptx
 
UNIT-1-SQE-Dr.K.Srinivas-CSE.pptx
UNIT-1-SQE-Dr.K.Srinivas-CSE.pptxUNIT-1-SQE-Dr.K.Srinivas-CSE.pptx
UNIT-1-SQE-Dr.K.Srinivas-CSE.pptx
 
InTERNET Border patrol.pptx
InTERNET Border patrol.pptxInTERNET Border patrol.pptx
InTERNET Border patrol.pptx
 
BHARADWAJ.pptx
BHARADWAJ.pptxBHARADWAJ.pptx
BHARADWAJ.pptx
 
unit-1.pptx
unit-1.pptxunit-1.pptx
unit-1.pptx
 
vaagdevi paper.pdf
vaagdevi paper.pdfvaagdevi paper.pdf
vaagdevi paper.pdf
 
griet paper pblished(13-9-2021).pdf
griet paper pblished(13-9-2021).pdfgriet paper pblished(13-9-2021).pdf
griet paper pblished(13-9-2021).pdf
 
ijatcse21932020.pdf
ijatcse21932020.pdfijatcse21932020.pdf
ijatcse21932020.pdf
 
Turkey music( june 2021).pdf
Turkey music( june 2021).pdfTurkey music( june 2021).pdf
Turkey music( june 2021).pdf
 
patent_vpr.pdf
patent_vpr.pdfpatent_vpr.pdf
patent_vpr.pdf
 

Recently uploaded

call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️9953056974 Low Rate Call Girls In Saket, Delhi NCR
 
Employee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxEmployee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxNirmalaLoungPoorunde1
 
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions  for the students and aspirants of Chemistry12th.pptxOrganic Name Reactions  for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions for the students and aspirants of Chemistry12th.pptxVS Mahajan Coaching Centre
 
Introduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxIntroduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxpboyjonauth
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityGeoBlogs
 
MENTAL STATUS EXAMINATION format.docx
MENTAL     STATUS EXAMINATION format.docxMENTAL     STATUS EXAMINATION format.docx
MENTAL STATUS EXAMINATION format.docxPoojaSen20
 
CARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxCARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxGaneshChakor2
 
mini mental status format.docx
mini    mental       status     format.docxmini    mental       status     format.docx
mini mental status format.docxPoojaSen20
 
Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)eniolaolutunde
 
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Sapana Sha
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introductionMaksud Ahmed
 
Class 11 Legal Studies Ch-1 Concept of State .pdf
Class 11 Legal Studies Ch-1 Concept of State .pdfClass 11 Legal Studies Ch-1 Concept of State .pdf
Class 11 Legal Studies Ch-1 Concept of State .pdfakmcokerachita
 
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxPOINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxSayali Powar
 
KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)————IMP.OF KSHARA ...
KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)————IMP.OF KSHARA ...KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)————IMP.OF KSHARA ...
KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)————IMP.OF KSHARA ...M56BOOKSTORE PRODUCT/SERVICE
 
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPTECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPTiammrhaywood
 
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...Marc Dusseiller Dusjagr
 
Mastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionMastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionSafetyChain Software
 
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17Celine George
 
How to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxHow to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxmanuelaromero2013
 

Recently uploaded (20)

call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
 
Employee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxEmployee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptx
 
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions  for the students and aspirants of Chemistry12th.pptxOrganic Name Reactions  for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
 
Introduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxIntroduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptx
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activity
 
MENTAL STATUS EXAMINATION format.docx
MENTAL     STATUS EXAMINATION format.docxMENTAL     STATUS EXAMINATION format.docx
MENTAL STATUS EXAMINATION format.docx
 
CARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxCARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptx
 
mini mental status format.docx
mini    mental       status     format.docxmini    mental       status     format.docx
mini mental status format.docx
 
Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)
 
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introduction
 
Class 11 Legal Studies Ch-1 Concept of State .pdf
Class 11 Legal Studies Ch-1 Concept of State .pdfClass 11 Legal Studies Ch-1 Concept of State .pdf
Class 11 Legal Studies Ch-1 Concept of State .pdf
 
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxPOINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
 
KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)————IMP.OF KSHARA ...
KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)————IMP.OF KSHARA ...KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)————IMP.OF KSHARA ...
KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)————IMP.OF KSHARA ...
 
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPTECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
 
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
 
Mastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionMastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory Inspection
 
Código Creativo y Arte de Software | Unidad 1
Código Creativo y Arte de Software | Unidad 1Código Creativo y Arte de Software | Unidad 1
Código Creativo y Arte de Software | Unidad 1
 
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
 
How to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxHow to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptx
 

JAVA PROGRAMMING (1).pptx

  • 2. 11/6/2022 2 • Java is one of the most popular and widely used programming language and platform. A platform is an environment that helps to develop and run programs written in any programming language. • Java is fast, reliable and secure. From desktop to web applications, scientific supercomputers to gaming consoles, cell phones to the Internet, Java is used in every nook and corner. Chapter 1-java evolution
  • 3. 11/6/2022 3 • Java is easy to learn, and its syntax is simple and easy to understand. It is based on C++ (so easier for programmers who know C++). Java has removed many confusing and rarely-used features e.g., explicit pointers, operator overloading etc. Java also takes care of memory management and for that, it provides an automatic garbage collector. This collects the unused objects automatically.
  • 7. CHAPTER-2 CLASSES AND OBJECTS •Mobile-phone is an object because it is a real time entity, and it has its own state, behavior and identity. Mobile- phone are manufactured in surplus by various companies and each of the brands have distinct features. •Classes in java are logical entities which have methods, fields, constructors and a lot more. In a mobile-phone, you can consider its specifications as classes, be it processor/battery/sensors/basic features like call, text, record. 11/6/2022 7
  • 8. Abstraction: •Revealing relevant/necessary information and hiding the unwanted information is abstraction. •In a mobile-phone, dialing a number would call some method internally which will concatenate the numbers and displays it on screen but, we don’t know what is happening internally. •When you tap on the call option, it is sending signals to another person’s mobile(whom you are trying to call) but we are unaware of its implementation. •So, it is hiding the implementation and showing you the functionality only. Encapsulation: •Enclosing one or more details from outside world through access rights. •We have Bluetooth in our mobiles to transfer data between two mobile-phones within a limited distance. •If I turn on Bluetooth in both mobiles, I can transfer the desired data, but I can’t access the other mobile’s information like gallery until and unless I get a permission from the other mobile.
  • 9. Polymorphism: •Performing a job in different ways.(One to many) •We click photographs and record videos using the camera in a mobile- phone. •Various brands have a plethora of camera modes in a mobile like split camera/pan aroma/slow-mo. •The basic purpose is to click/record, so the functionality of camera is the same in every mobile, whereas the modes enable you to use your camera in different ways. 11/6/2022 9 Inheritance: •One class(sub/child class) is deriving all properties from other class.(parent class) •The basic purpose of using a mobile-phone is communication. •There are several brands in mobiles. So, the brands of a mobile are using this basic functionality(communication) by extending the mobile class functionality and adding their own new features to their respective brands.
  • 10.  Refer the below site for more concepts: https://medium.com/front-end-weekly/es6-lets-divide-our-phones-into- classes-4574bd0454bf
  • 11. 11/6/2022 11 PACKAGES: Package in Java is a mechanism to encapsulate a group of classes, sub packages and interfaces Chapter-3 packages and interfaces
  • 12. 11/6/2022 12 This java android package contains various classes for implementation.
  • 13. 11/6/2022 13 INTERFACE: An Interface is a group of abstract methods and constants. An Interface may contain constants, static methods, default methods, and nested types. Default and static methods have their body in an interface. An Interface cannot be instantiated interface Wifi { void connect(); void disconnect(); } class Mobile implements Wifi { public void connect() { System.out.println("Wifi connected"); } public void disconnect() { System.out.println("Wifi disconnected");} public static void main(String args[]) { Mobile mobile = new Mobile(); mobile.connect(); mobile.disconnect(); }} //Output //Wifi connected ///Wifi disconnected
  • 14.  Java collections refer to a collection of individual objects that are represented as a single unit. You can perform all operations such as searching, sorting, insertion, manipulation, deletion, etc., on Java collections just like you do it on data. CHAPTER-4 THE COLLECTION FRAMEWORK 11/6/2022 14  A Java collection framework provides an architecture to store and manipulate a group of objects. A Java collection framework includes the following: • Interfaces • Classes • Algorithm
  • 16. chapter-5 MULTITHREADING • Multithreading is a Java feature that allows concurrent execution of two or more parts of a program for maximum utilization of CPU. Each part of such program is called a thread. So, threads are light-weight processes within a process 11/6/2022 16 Accessing multiple tabs using multithreading
  • 17. 11/6/2022 17 • JDBC stands for Java Database Connectivity. JDBC is a Java API to connect and execute the query with the database. It is a part of Java SE (Java Standard Edition). JDBC API uses JDBC drivers to connect with the database. Chapter-6 JDBC
  • 18. 11/6/2022 18 Transaction management [1, 2] refers to the tasks of processing multiple transactions issued by various clients of a database server in such a way that the ACID contract can be fulfilled, that is, the properties of atomicity, consistency preservation, isolation, and durability of each individual transaction can be guaranteed. Transaction management is generally understood as requiring serializability-based concurrency control as well as recovery from failures. Paypal uses JAVA for writing application and transaction management

Editor's Notes

  1. Line spacing + Page numbers