SlideShare a Scribd company logo
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).ppt
AliyaJav
 
Seattle bestpractices2010
Seattle bestpractices2010Seattle bestpractices2010
Seattle bestpractices2010
Olaseni 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 Kaksha
GandhiSarthak
 
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
GandhiSarthak
 
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
 
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
Banking at Ho Chi Minh city
 
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
Banking at Ho Chi Minh city
 
01-Java Introduction.ppt
01-Java Introduction.ppt01-Java Introduction.ppt
01-Java Introduction.ppt
JyothiAmpally
 
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
 
Mobile Application Development class 001
Mobile Application Development class 001Mobile Application Development class 001
Mobile Application Development class 001
Dr. Mazin Mohamed alkathiri
 
Advance java prasentation
Advance java prasentationAdvance java prasentation
Advance java prasentation
dhananajay95
 
DesktopApps.pptx
DesktopApps.pptxDesktopApps.pptx
DesktopApps.pptx
ssusera47413
 
Java Introduction | PDF
Java Introduction |  PDFJava Introduction |  PDF
Java Introduction | PDF
Geekster
 
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
Gateway Software Solutions
 
Mobile applications chapter 5
Mobile applications chapter 5Mobile applications chapter 5
Mobile applications chapter 5
Akib B. Momin
 
Java ms harsha
Java ms harshaJava ms harsha
Java ms harsha
Harsha Batra
 
Basics of JAVA programming
Basics of JAVA programmingBasics of JAVA programming
Basics of JAVA programming
Elizabeth Thomas
 
FEATURES OF JAVA
FEATURES OF JAVAFEATURES OF JAVA
FEATURES OF JAVA
Rhythm Suiwal
 

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

FLOWCHARTS.pptx
FLOWCHARTS.pptxFLOWCHARTS.pptx
FLOWCHARTS.pptx
Srinivas Kanakala
 
Minor project ppt (1).pptx
Minor project ppt (1).pptxMinor project ppt (1).pptx
Minor project ppt (1).pptx
Srinivas Kanakala
 
system hacking.pptx
system hacking.pptxsystem hacking.pptx
system hacking.pptx
Srinivas Kanakala
 
RDBMS WIT &WIL.pptx
RDBMS WIT &WIL.pptxRDBMS WIT &WIL.pptx
RDBMS WIT &WIL.pptx
Srinivas Kanakala
 
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
Srinivas Kanakala
 
InTERNET Border patrol.pptx
InTERNET Border patrol.pptxInTERNET Border patrol.pptx
InTERNET Border patrol.pptx
Srinivas Kanakala
 
BHARADWAJ.pptx
BHARADWAJ.pptxBHARADWAJ.pptx
BHARADWAJ.pptx
Srinivas Kanakala
 
unit-1.pptx
unit-1.pptxunit-1.pptx
unit-1.pptx
Srinivas Kanakala
 
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
Srinivas Kanakala
 
ijatcse21932020.pdf
ijatcse21932020.pdfijatcse21932020.pdf
ijatcse21932020.pdf
Srinivas Kanakala
 
Turkey music( june 2021).pdf
Turkey music( june 2021).pdfTurkey music( june 2021).pdf
Turkey music( june 2021).pdf
Srinivas Kanakala
 

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

Best Digital Marketing Institute In NOIDA
Best Digital Marketing Institute In NOIDABest Digital Marketing Institute In NOIDA
Best Digital Marketing Institute In NOIDA
deeptiverma2406
 
Guidance_and_Counselling.pdf B.Ed. 4th Semester
Guidance_and_Counselling.pdf B.Ed. 4th SemesterGuidance_and_Counselling.pdf B.Ed. 4th Semester
Guidance_and_Counselling.pdf B.Ed. 4th Semester
Atul Kumar Singh
 
Welcome to TechSoup New Member Orientation and Q&A (May 2024).pdf
Welcome to TechSoup   New Member Orientation and Q&A (May 2024).pdfWelcome to TechSoup   New Member Orientation and Q&A (May 2024).pdf
Welcome to TechSoup New Member Orientation and Q&A (May 2024).pdf
TechSoup
 
BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...
BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...
BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...
Nguyen Thanh Tu Collection
 
Embracing GenAI - A Strategic Imperative
Embracing GenAI - A Strategic ImperativeEmbracing GenAI - A Strategic Imperative
Embracing GenAI - A Strategic Imperative
Peter Windle
 
A Survey of Techniques for Maximizing LLM Performance.pptx
A Survey of Techniques for Maximizing LLM Performance.pptxA Survey of Techniques for Maximizing LLM Performance.pptx
A Survey of Techniques for Maximizing LLM Performance.pptx
thanhdowork
 
Biological Screening of Herbal Drugs in detailed.
Biological Screening of Herbal Drugs in detailed.Biological Screening of Herbal Drugs in detailed.
Biological Screening of Herbal Drugs in detailed.
Ashokrao Mane college of Pharmacy Peth-Vadgaon
 
Lapbook sobre os Regimes Totalitários.pdf
Lapbook sobre os Regimes Totalitários.pdfLapbook sobre os Regimes Totalitários.pdf
Lapbook sobre os Regimes Totalitários.pdf
Jean Carlos Nunes Paixão
 
Acetabularia Information For Class 9 .docx
Acetabularia Information For Class 9  .docxAcetabularia Information For Class 9  .docx
Acetabularia Information For Class 9 .docx
vaibhavrinwa19
 
A Strategic Approach: GenAI in Education
A Strategic Approach: GenAI in EducationA Strategic Approach: GenAI in Education
A Strategic Approach: GenAI in Education
Peter Windle
 
Model Attribute Check Company Auto Property
Model Attribute  Check Company Auto PropertyModel Attribute  Check Company Auto Property
Model Attribute Check Company Auto Property
Celine George
 
June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...
June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...
June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...
Levi Shapiro
 
1.4 modern child centered education - mahatma gandhi-2.pptx
1.4 modern child centered education - mahatma gandhi-2.pptx1.4 modern child centered education - mahatma gandhi-2.pptx
1.4 modern child centered education - mahatma gandhi-2.pptx
JosvitaDsouza2
 
Language Across the Curriculm LAC B.Ed.
Language Across the  Curriculm LAC B.Ed.Language Across the  Curriculm LAC B.Ed.
Language Across the Curriculm LAC B.Ed.
Atul Kumar Singh
 
Introduction to AI for Nonprofits with Tapp Network
Introduction to AI for Nonprofits with Tapp NetworkIntroduction to AI for Nonprofits with Tapp Network
Introduction to AI for Nonprofits with Tapp Network
TechSoup
 
Multithreading_in_C++ - std::thread, race condition
Multithreading_in_C++ - std::thread, race conditionMultithreading_in_C++ - std::thread, race condition
Multithreading_in_C++ - std::thread, race condition
Mohammed Sikander
 
How libraries can support authors with open access requirements for UKRI fund...
How libraries can support authors with open access requirements for UKRI fund...How libraries can support authors with open access requirements for UKRI fund...
How libraries can support authors with open access requirements for UKRI fund...
Jisc
 
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
MysoreMuleSoftMeetup
 
Overview on Edible Vaccine: Pros & Cons with Mechanism
Overview on Edible Vaccine: Pros & Cons with MechanismOverview on Edible Vaccine: Pros & Cons with Mechanism
Overview on Edible Vaccine: Pros & Cons with Mechanism
DeeptiGupta154
 
Chapter -12, Antibiotics (One Page Notes).pdf
Chapter -12, Antibiotics (One Page Notes).pdfChapter -12, Antibiotics (One Page Notes).pdf
Chapter -12, Antibiotics (One Page Notes).pdf
Kartik Tiwari
 

Recently uploaded (20)

Best Digital Marketing Institute In NOIDA
Best Digital Marketing Institute In NOIDABest Digital Marketing Institute In NOIDA
Best Digital Marketing Institute In NOIDA
 
Guidance_and_Counselling.pdf B.Ed. 4th Semester
Guidance_and_Counselling.pdf B.Ed. 4th SemesterGuidance_and_Counselling.pdf B.Ed. 4th Semester
Guidance_and_Counselling.pdf B.Ed. 4th Semester
 
Welcome to TechSoup New Member Orientation and Q&A (May 2024).pdf
Welcome to TechSoup   New Member Orientation and Q&A (May 2024).pdfWelcome to TechSoup   New Member Orientation and Q&A (May 2024).pdf
Welcome to TechSoup New Member Orientation and Q&A (May 2024).pdf
 
BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...
BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...
BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...
 
Embracing GenAI - A Strategic Imperative
Embracing GenAI - A Strategic ImperativeEmbracing GenAI - A Strategic Imperative
Embracing GenAI - A Strategic Imperative
 
A Survey of Techniques for Maximizing LLM Performance.pptx
A Survey of Techniques for Maximizing LLM Performance.pptxA Survey of Techniques for Maximizing LLM Performance.pptx
A Survey of Techniques for Maximizing LLM Performance.pptx
 
Biological Screening of Herbal Drugs in detailed.
Biological Screening of Herbal Drugs in detailed.Biological Screening of Herbal Drugs in detailed.
Biological Screening of Herbal Drugs in detailed.
 
Lapbook sobre os Regimes Totalitários.pdf
Lapbook sobre os Regimes Totalitários.pdfLapbook sobre os Regimes Totalitários.pdf
Lapbook sobre os Regimes Totalitários.pdf
 
Acetabularia Information For Class 9 .docx
Acetabularia Information For Class 9  .docxAcetabularia Information For Class 9  .docx
Acetabularia Information For Class 9 .docx
 
A Strategic Approach: GenAI in Education
A Strategic Approach: GenAI in EducationA Strategic Approach: GenAI in Education
A Strategic Approach: GenAI in Education
 
Model Attribute Check Company Auto Property
Model Attribute  Check Company Auto PropertyModel Attribute  Check Company Auto Property
Model Attribute Check Company Auto Property
 
June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...
June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...
June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...
 
1.4 modern child centered education - mahatma gandhi-2.pptx
1.4 modern child centered education - mahatma gandhi-2.pptx1.4 modern child centered education - mahatma gandhi-2.pptx
1.4 modern child centered education - mahatma gandhi-2.pptx
 
Language Across the Curriculm LAC B.Ed.
Language Across the  Curriculm LAC B.Ed.Language Across the  Curriculm LAC B.Ed.
Language Across the Curriculm LAC B.Ed.
 
Introduction to AI for Nonprofits with Tapp Network
Introduction to AI for Nonprofits with Tapp NetworkIntroduction to AI for Nonprofits with Tapp Network
Introduction to AI for Nonprofits with Tapp Network
 
Multithreading_in_C++ - std::thread, race condition
Multithreading_in_C++ - std::thread, race conditionMultithreading_in_C++ - std::thread, race condition
Multithreading_in_C++ - std::thread, race condition
 
How libraries can support authors with open access requirements for UKRI fund...
How libraries can support authors with open access requirements for UKRI fund...How libraries can support authors with open access requirements for UKRI fund...
How libraries can support authors with open access requirements for UKRI fund...
 
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
 
Overview on Edible Vaccine: Pros & Cons with Mechanism
Overview on Edible Vaccine: Pros & Cons with MechanismOverview on Edible Vaccine: Pros & Cons with Mechanism
Overview on Edible Vaccine: Pros & Cons with Mechanism
 
Chapter -12, Antibiotics (One Page Notes).pdf
Chapter -12, Antibiotics (One Page Notes).pdfChapter -12, Antibiotics (One Page Notes).pdf
Chapter -12, Antibiotics (One Page Notes).pdf
 

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