Java seminar
-
Upload
devendrakhairwa -
Category
Education
-
view
30 -
download
0
Transcript of Java seminar
![Page 1: Java seminar](https://reader030.fdocuments.us/reader030/viewer/2022032421/55a6865a1a28abe2088b4692/html5/thumbnails/1.jpg)
Presented By :-
DEVENDRA KHAIRWA
![Page 2: Java seminar](https://reader030.fdocuments.us/reader030/viewer/2022032421/55a6865a1a28abe2088b4692/html5/thumbnails/2.jpg)
Programming language is a vocabulary and
set of grammatical rules for instructing a
computer to perform specific tasks.
Types of programming language
1. Procedure-oriented programming language
COBOL, FORTRAN, and C
2. Object oriented programming language
C++, Java, and PHP
![Page 3: Java seminar](https://reader030.fdocuments.us/reader030/viewer/2022032421/55a6865a1a28abe2088b4692/html5/thumbnails/3.jpg)
Procedure-oriented programming language
In procedural programming our code is organized into small "procedures" that use and change our data. So our data move openly around the system from function to function.
![Page 4: Java seminar](https://reader030.fdocuments.us/reader030/viewer/2022032421/55a6865a1a28abe2088b4692/html5/thumbnails/4.jpg)
Object oriented programming language
In Object oriented programming the data and related functions are bundled together into an "object". So that not even any other functions of the same program can use other data and our data will remain safe.
![Page 5: Java seminar](https://reader030.fdocuments.us/reader030/viewer/2022032421/55a6865a1a28abe2088b4692/html5/thumbnails/5.jpg)
Concept of OOPSOOPS Features in brief
The programming in which data is logically represented in the form of a class and
physically represented in the form an object is called as object oriented
programming (OOP). OOP has the following important features.
![Page 6: Java seminar](https://reader030.fdocuments.us/reader030/viewer/2022032421/55a6865a1a28abe2088b4692/html5/thumbnails/6.jpg)
Concept of OOPSOOPS Features in brief
Data Encapsulation : Encapsulation means wrapping up
data and member function (Method) together into a
single unit i.e. class.
Data Abstraction :
Abstraction is the process of hiding out the working
style of an object and showing only the required
information of the object in understandable manner.
Advantage of data abstraction is security.
![Page 7: Java seminar](https://reader030.fdocuments.us/reader030/viewer/2022032421/55a6865a1a28abe2088b4692/html5/thumbnails/7.jpg)
Concept of OOPSOOPS Features in brief
Inheritance : Creating a new class from an existing
class is called as inheritance. Advantage of inheritance
is reusability of the code.
Polymorphism : Polymorphism means having more
than one form. In this different classes can have
different behaviors for the same operation.
Polymorphism can be achieved with the help of
overloading and overriding concepts.
![Page 8: Java seminar](https://reader030.fdocuments.us/reader030/viewer/2022032421/55a6865a1a28abe2088b4692/html5/thumbnails/8.jpg)
Why do we need java ?
Trouble with C/C++ language is that they are not portable
and are not platform independent language.
Emergence of world wide web which demand portable
programs.
Portability and security necessitated the invention of JAVA.
![Page 9: Java seminar](https://reader030.fdocuments.us/reader030/viewer/2022032421/55a6865a1a28abe2088b4692/html5/thumbnails/9.jpg)
History of JAVA
JAVA is general purpose
object oriented programming language developed by James
Gosling and colleagues at Sun Microsystems in the early 1990s
with promise to Write Once Run Anywhere and JVM make it
possible.
![Page 10: Java seminar](https://reader030.fdocuments.us/reader030/viewer/2022032421/55a6865a1a28abe2088b4692/html5/thumbnails/10.jpg)
What is JVM ?
The heart of the Java
platform is the concept
of a "virtual machine“
JVM is a virtual machine
that provides runtime environment where JAVA program
runs.
It makes JAVA platform independent because JVM self work
as platform for all JAVA programs.
![Page 11: Java seminar](https://reader030.fdocuments.us/reader030/viewer/2022032421/55a6865a1a28abe2088b4692/html5/thumbnails/11.jpg)
Editions of JAVA
J2SE(JAVA 2 Standard Edition) –
to develop client-side stand
alone applications or applets.
J2EE(JAVA 2 Enterprise Edition) – to develop server-side applications such as JAVA servlet and JAVA server pages.
J2ME (JAVA 2 Micro Edition) – to develop applications for mobile devices.
![Page 12: Java seminar](https://reader030.fdocuments.us/reader030/viewer/2022032421/55a6865a1a28abe2088b4692/html5/thumbnails/12.jpg)
Advantages of Java
Simple
Object oriented
Architecture –neutral
Portable
Secure
Multithreaded.
![Page 13: Java seminar](https://reader030.fdocuments.us/reader030/viewer/2022032421/55a6865a1a28abe2088b4692/html5/thumbnails/13.jpg)
Some features of JAVA
Automatic type checking
Automatic garbage collection
No directly accessible pointer
to memory
Multi threading
![Page 14: Java seminar](https://reader030.fdocuments.us/reader030/viewer/2022032421/55a6865a1a28abe2088b4692/html5/thumbnails/14.jpg)
Introduction to JDBC
Java Database Connectivity (JDBC) is a Java
Application Programming Interface (API) for
executing SQL statements.
It consists of a set of classes and interfaces
written in Java.
It extends the various features of java, such as
security, platform independence, easy
understanding and usage.
![Page 15: Java seminar](https://reader030.fdocuments.us/reader030/viewer/2022032421/55a6865a1a28abe2088b4692/html5/thumbnails/15.jpg)
The JDBC provides a standard interface for
accessing a database.
Java applications use the JDBC API to
connect with a database through a database
driver.
![Page 16: Java seminar](https://reader030.fdocuments.us/reader030/viewer/2022032421/55a6865a1a28abe2088b4692/html5/thumbnails/16.jpg)
JDBC ARCHITECTURE
Java applications cannot communicate directly with a
database to submit the data & retrieve results of queries.
This is because a database can interpret SQL statements only
and not Java language statements.
Therefore, we need a mechanism to translate Java
statements into SQL statements and vice-versa.
The JDBC architecture provides the mechanism for this kind
of translation.
![Page 17: Java seminar](https://reader030.fdocuments.us/reader030/viewer/2022032421/55a6865a1a28abe2088b4692/html5/thumbnails/17.jpg)
JDBC ARCHITECTURE
![Page 18: Java seminar](https://reader030.fdocuments.us/reader030/viewer/2022032421/55a6865a1a28abe2088b4692/html5/thumbnails/18.jpg)
Device running on JAVA
Set–top boxes
ATM
Printers
Web cams
Games
Car navigation systems
Lottery terminals
Medical devices
Parking payment stations
![Page 19: Java seminar](https://reader030.fdocuments.us/reader030/viewer/2022032421/55a6865a1a28abe2088b4692/html5/thumbnails/19.jpg)
Certification in JAVA
Getting certified is a great way to
invest in your professional
development and to help boost your
career potential.
Sun offers the following certifications for Java technologies:
Java Platform, Standard Edition
(Java SE)
Sun Certified Java Associate
Sun Certified Java Programmer
Sun Certified Java Developer
![Page 20: Java seminar](https://reader030.fdocuments.us/reader030/viewer/2022032421/55a6865a1a28abe2088b4692/html5/thumbnails/20.jpg)
Certification in JAVA
Java Platform, Enterprise Edition
(Java EE)
Sun Certified Web Component Developer
Sun Certified Business Component Developer
Sun Certified Developer for Java Web Services
Sun Certified Enterprise Architect
Java Platform, Micro Edition (Java ME)
Sun Certified Mobile Application Developer
![Page 21: Java seminar](https://reader030.fdocuments.us/reader030/viewer/2022032421/55a6865a1a28abe2088b4692/html5/thumbnails/21.jpg)
![Page 22: Java seminar](https://reader030.fdocuments.us/reader030/viewer/2022032421/55a6865a1a28abe2088b4692/html5/thumbnails/22.jpg)