Professional Documents
Culture Documents
PROGRAMMING
-V. Prashanthi
Chapter 1-java evolution
• 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.
11/18/2023 2
• 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/18/2023 3
11/18/2023 4
11/18/2023 5
11/18/2023 6
Java concepts
with
mobile-phone
scenario
CHAPTER-2 CLASSES AND OBJECTS
11/18/2023 7
Abstraction:
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.
Inheritance:
https://medium.com/front-end-weekly/es6-lets-divide-our-phones-into-classes-
4574bd0454bf
Chapter-3 packages and interfaces
PACKAGES:
Package in Java is a mechanism to encapsulate a group of classes, sub packages and interfaces
11/18/2023 11
This java android package contains various classes for implementation.
11/18/2023 12
INTERFACE:
• Interfaces
• Classes
• Algorithm
11/18/2023 14
LISTS
GRAPH
SET
STACK
QUEUE
11/18/2023 15
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/18/2023 17
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.
11/18/2023 18