Вы находитесь на странице: 1из 28

Presentation on

1. Bharat Shrichandani
2. Faraz Ahmed Ansari
3. Vinod Mohabe
Contents
 Java Introduction
About Java Technology
Features of Java Technology
Java Development Kit
 Types of Java Applications
 Java Program Structure
 Data-Types,Methods,Math-
fn,Operators,looping statements
 ASP and JSP in Java
 Various Database Tehnology
History Of Java
Java is a general purpose ,Object Oriented
language developed by Sun Microsystems of
USA in 1991.
• Orignally called the ‘Oak’ by James
Gosling One of the inventors of the
language
• It was designed for the development of
software for the consumer electronic
devices like TV, VCR, Mobiles etc.
About Java Technology
Java is purely and Object Oriented
Programming Language means everything is
java is in class and object.`
• Class:- A class is a group of object. That is
used for declaring the objects and instantiate
in the memory.
• Objects:- Objects are the basic runtime entity
in the object oriented progrmming. They may
represents a person, a place , a bank account
etc. Statement for
creating object
class bankaccount;
Features of Java Language
• Compiled and Interpreted
• Platform – Independent
• Portablity
• Object Oriented.
• Distributed.
• Multithreaded and Interactive.
• Robust and Secure.
• Support JDBC.
Types of java application

Stand alone applications Web Based applications


Stand Alone Applications:
Stand alone applications
Are those that can only run on a single PC i.e
not a Distributed application.

Web Based Application:-


A web based applications
are those that can run by a web browser over a
network such as intranet or an internet.
Stand alone applicaiton

Front End Back End


(Swing) (Database)
Web based application

JSP ASP Applets


JSP( Java Server Pages )
JSP have java code embedded in HTML code. JSP
is a text base document which is used to create:-
• To create dynamic pages.
• For designing server side pages.
• These pages are also language intependent
and most widely used as compared to ASP,
because it provide security to the user.

• The extension of the JSP file is .jsp


ASP( Active server pages)
•Active Server Pages (ASP) also known as
classic ASP or ASP Classic was the microsoft
first server side script engine for dynamically
generated web page.
• The extension of ASP is .asp.
• Not used so much because it doesn’t provide
security to the user because it code Is only
compiled not interpreted.
• Advance of ASP is the ASP.net with is roubust
, secure, easy to learn, and most widely used
for generatating web based applications
Applets in Java
 Applets are the small java programs that are
primarily used in internet computing. They can
be transported over one computer to another
and run using appletviewer or any other web
browser that support java.
 An applet can do so many things for us. It can
perform arithmetic operations, display graphics,
play sounds, accept user input, create animation
and many more.
Statement for
creating applets
import java.awt.*;
import java.applet.*;
Web based application

Web browser Web server server


database
INTERNET Apache Oracle
EXPLORER tomcat

NETSCAPE MY SQL
NAVIGATIOR
Basic concepts of java

Java tokens Java statements


Java tokens:-
The smallest individual units
in a program is known as tokens.

Java statements:-
A Statement is an
executable combination of tokens ending
With a semicolon mark(;).
Java Tokens

Literals Reserved operators Identifiers separators


Keywords
Java statements

Expression Guarding
Labelled Synchronization

Control

Selection
Labelled
Java Program Structure
DOCUMENT SECTION

PACKAGE STATEMENT
OPTIONAL
IMPORT STATEMENT
STATEMTENT
INTERFACE STATEMENT

CLASS DEFINATION

MAIN METHOD CLASS


ESSENTIAL
A simple java program
// A PROGRAM TO PRINT THE TEXT“HELLO WORLD”
class HelloWorld
{
public static void main(String[] args)
{
System.out.println("Hello World!");
}
}
//Now save the file by the same name
as class with .java extension in
C:\Program Files\Java\jdk1.5.0\bin
dierectory. And execute the program
as folows:-

A java program is executed in two phases they


are:-
1. Compilation
2. Interpratation.
JAVA JAVA
BYTECODE
PROGRAM COMPILER

PROCESS OF COMPILATION

MACHINE
BYTECODE JAVA
CODE(010)
INTERPRETER

PROCESS OF CONVERTING
BYTECODE INTO MACHINE CODE
Now open Dos and compile and
interpret the program.
History Of Java
Java is a general purpose ,Object Oriented
language developed by Sun Microsystems of
USA in 1991.
• Orignally called the ‘Oak’ by James
Gosling One of the inventors of the
language
• It was designed for the development of
software for the consumer electronic
devices like TV, VCR, Mobiles etc.
About Java Technology
Java is purely and Object Oriented
Programming Language means everything is
java is in class and object.`
• Class:- A class is a group of object. That is
used for declaring the objects and instantiate
in the memory.
• Objects:- Objects are the basic runtime entity
in the object oriented progrmming. They may
represents a person, a place , a bank account
etc. Statement for
creating object
class bankaccount;
Features of Java Language

• Compiled and Interpreted.


• Platform – Independent and Portable.
• Object Oriented.
• Distributed.
• Multithreaded and Interactive.
• Robust and Secure.
• Support JDBC.
JAVA JAVA
BYTECODE
PROGRAM COMPILER

PROCESS OF COMPILATION

MACHINE
BYTECODE JAVA
CODE(010)
INTERPRETER

PROCESS OF CONVERTING
BYTECODE INTO MACHINE CODE
Java Development Kit
The Java Development Kit contains the variety of tools that are

used for the developing and running java programs.

They include:-
• appletviewer(for viewing java applets)
• javac(java compiler)
•java(interpreter)
•Javap(java disassembler)
•Javah(for C header files)
•Javadoc(for creating HTML document)
•Jdb(java debugger)
Applets in Java
 Applets are the small java programs that are
primarily used in internet computing. They can
be transported over one computer to another
and run using appletviewer or any other web
browser that support java.
 An applet can do so many things for us. It can
perform arithmetic operations, display graphics,
play sounds, accept user input, create animation
and many more.
Statement for
creating applets
import java.awt.*;
import java.applet.*;

Вам также может понравиться