0% found this document useful (0 votes)
3 views24 pages

Java

The document provides an overview of Java, including its history, features, and various editions such as J2SE, J2EE, and J2ME. It also covers Java development tools like JVM, JRE, and JDK, as well as Java Swing for GUI development and JDBC for database connectivity. Additionally, it mentions the widespread use of Java across various devices and the certification options available through Oracle.

Uploaded by

Alok
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
3 views24 pages

Java

The document provides an overview of Java, including its history, features, and various editions such as J2SE, J2EE, and J2ME. It also covers Java development tools like JVM, JRE, and JDK, as well as Java Swing for GUI development and JDBC for database connectivity. Additionally, it mentions the widespread use of Java across various devices and the certification options available through Oracle.

Uploaded by

Alok
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 24

JAVA (J2SE)

Alok Ranjan
Department of CSE
Jaipur Engineering College
Products

Solutions
IT Outsourcing Business Solutions Technology Solutions
• Managed IT Solutions • e-learning Solutions • Microsoft ASP.NET
• Cloud Solutions • Social Networking Solutions
• Engagement Models Solutions • Mobile / Smartphone
• Dedicated Teams • Online food ordering Solutions
Solutions • Ruby on Rails (RoR)
• Online doctor Solutions
appointment Solutions • Android Solutions
• Ecommerce / B2C • iPhone / iPad Solutions
Solutions • LAMP (PHP/MySQL)
Solutions
JAVA
•JAVA is general purpose object oriented programming language.

•James Gosling initiated the Java language project in June 1991.

•Sun released the first public implementation as Java 1.0 in 1995.

•Targeted at consumer electronics. Wanted reliable programming language.

•On 13 November 2006, Sun released much of Java as free and open
source software under the terms of the GNU General Public License
(GPL).
•On 8 May 2007, Sun finished the process, making all of Java's core code
free and open-source
•JAVA has been acquired by oracle corporation on 20th April 2009.
JAVA Development Kit

• JVM: The Java Virtual machine (JVM) is


the virtual machine that runs the Java
byte codes.

• JRE: Java Runtime Environment (JRE) The


Java Runtime Environment (JRE) provides
the libraries, the Java Virtual Machine,
and other components to run applets and
applications written in the Java
programming language.

• JDK: Java Development Kit (JDK) The JDK


is a superset of the JRE, and contains
everything that is in the JRE
Features of JAVA

• Object Oriented
• Platform independent
• Simple
• Secure
• Architectural-neutral
• Portable
• Interpreted
• High Performance
• Multithreaded
• Distributed
• Dynamic
Object Oriented Feature of JAVA

• Object
Any entity that has state and behaviour
is known as an object. For example:
chair, pen, table, keyboard, bike etc. It
can be physical and logical.

• Class
A blueprint or prototype for which Object
are created. Collection of objects of
similar type. It is a logical entity.
Object Oriented Feature of JAVA

• Inheritance: When one object acquires all the properties and behaviours of
parent object i.e. known as inheritance. It provides code reusability. It is used to
achieve runtime polymorphism.
• Types of Inheritance

l) Single 2) Multilevel 3) Hierarchical


Object Oriented Feature of JAVA

• Polymorphism: When one task is performed by different ways


i.e. known as polymorphism. In java, we use method overloading
and method overriding to achieve polymorphism.

• Abstraction: Hiding internal details and showing functionality is


known as abstraction. In java, we use abstract class and interface
to achieve abstraction.

• Encapsulation: Binding (or wrapping) code and data together


into a single unit is known as encapsulation. A java class is the
example of encapsulation. Java bean is the fully encapsulated class
because all the data members are private here.
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.

• Java Card - For smartcards.


JAVA Swing

• Swing is a GUI widget toolkit for Java. It is part of Oracle's Java


Foundation Classes (JFC) — an API for providing a graphical
user interface (GUI) for Java programs
• Provides a rich set of GUI components.
• Used to create a Java program with a graphical user interface
(GUI)
• Swing was developed to provide a more sophisticated set of
GUI components than the earlier Abstract Window Toolkit
(AWT)
Features Of Swing

• Java Look and Feel

• Data Transfer

• Internationalization and Localization

• Accessibility

• System Tray Icon Support


JAVA Swing Component

• Top Level Containers: Window, Dialog, Frame.


• General Purpose Containers: Panel, Toolbar, Scrollbar .
• Special Purpose Containers: Internal Frame, Layered
pane, Root Pane.
• Basic Controls: Button, Combo Box, List, Menu.
• Uneditable Information Displays
• Interactive Displays of Highly Formatted Information
JDBC
Java API for connecting programs written in Java to the data in
relational databases

The standard defined by Sun Microsystems, allowing individual


providers to implement and extend the standard with their own JDBC
drivers.

Tasks of JDBC:

1) establishes a connection with a database


2) sends SQL statements
3) processes the results
JDBC Architecture

Java Application

JDBC driver manager

JDBC/native JDBC/ODBC JDBC Driver JDBC middleware


bridge bridge (DBMS Specific) (various DBMS)
Native driver
ODBC Driver
(DBMS specific)

DBMS
JDBC Driver Types

Class-I: JDBC:ODBC ( mainly for Desktop Applications)

Class-II: Native API Drivers (Vendor Specific drivers)

Class-III: Network API

Class-IV: Network Protocol Driver (used for Network based


Applications)
Overview of Querying a Database With JDBC

Connect

Query

Process
results

Close
Stage 1: Connect

Connect Register the driver

Query Connect to the database

Process
results

Close
Stage 2: Query

Connect

Query Create a statement

Process Query the database


results

Close
Stage 3: Process Results

Connect

Query
Step through the results

Process Assign results to Java


results variables

Close
Stage 4: Close

Connect

Query
Close the result set

Process
results Close the statement

Close Close the connection


Device running on JAVA
According to the Oracle
Corp. there are 3 billion
devices run JAVA. Like
• Set–top boxes
• ATM
• Printers
• Web cams
• Games
• Car navigation systems
• Lottery terminals
• Medical devices
• Parking payment
stations
Certification in JAVA
Getting certified is a great way to
invest in your professional
development and to help boost your
career potential.
Oracle offers the following certifications for Java technologies:
Java Platform, Standard Edition
(Java SE)
Oracle Certified Java Associate
Oracle Certified Java Programmer
Oracle Certified Java Developer
Thanks For Listening!

Any Queries?

You might also like