java introduction

27
Java Training

Upload: migrant-systems

Post on 05-Jul-2015

560 views

Category:

Education


1 download

DESCRIPTION

Java- Introduction We Provide Java Training at Migrant Systems Chennai

TRANSCRIPT

Page 1: Java introduction

Java Training

Page 2: Java introduction

2

Course Syllabus

Java Training Course Content

Overview of Object-Oriented Programming Language

Introduction to JAVA

Array in Java

Control Statement in Java

Page 3: Java introduction

3

Course Syllabus, cont.

Important Concept in Java

static,final,interface,abstractclass,super keyword

Wrapper classes

Exception Handling

User-Defined Package

IO Package(File Handling)

Lang Package

Page 4: Java introduction

Course Syllabus, cont.

Java Database Connectivity (JDBC)

Collections and Generics Framework

Threads

J2EEJSP & Servlet

XML

Struts

4

Page 5: Java introduction

Computer Programming

� The history of computer programming is a steady move away from machine-oriented views of programming towards concepts and metaphors that more closely reflect the way in which we ourselves understand the world

� Programming has progressed through:– machine code– assembly language– machine-independent programming languages– procedures & functions– objects

5

Page 6: Java introduction

Machine Language

6

0000 1001 1100 0110 1010 1111 0101 10001010 1111 0101 1000 0000 1001 1100 01101100 0110 1010 1111 0101 1000 0000 10010101 1000 0000 1001 1100 0110 1010 1111

Page 7: Java introduction

Assembly Language

7

MOV R1, 34 / GET 1st VALUEMOV R2, 36 /GET 2nd VALUEADD R3, R1, R2; /R3=R1+R2END

Page 8: Java introduction

Machine-Independent Programming Languages – Fortran

This example program solves for roots of the quadratic equation,

! ax^2 +bx +c =0,for given values of a, b and c.!PROGRAM bisectionIMPLICIT NONEINTEGER :: iterationDOUBLE PRECISION :: CC, Er, xl, x0, x0_old, xr

! Set convergence criterion and guess for xl, xr.CC = 1.d-4xl = 8.d-1xr = 11.d-1

! Bisection method.Er =CC +1iteration = 0DO WHILE (Er > CC)

iteration = iteration + 1

! Compute x0 and the error.x0_old = x0x0 = (xl + xr) / 2.d0Er = DABS((x0 - x0_old)/x0)*100.d0WRITE (*,10) iteration, x0_old, x0, Er10 FORMAT (1X,I4,3(2X,E10.4))

8

Page 9: Java introduction

Procedures & Functions – Pascalprogram ValueArg(output);

{Shows how to arrange for a procedure to have arguments.}

procedure PrintInitials(First, Last : char);{Within this procedure, the names First and Last represent the argument values. We’ll call write to print them.}begin

write(‘My initials are: ’);write(First);writeln(Last)

end; {PrintInitials}

beginPrintInitials (‘D’, ‘C’); {Any two characters can be arguments.}PrintInitials (‘Q’, ‘T’); {Like strings, characters are quoted.}PrintInitials (‘&’, ‘#’)

end. {ValueArg}

9

Page 10: Java introduction

Objects

10

� class Time {

private int hour, minute;

public Time (int h, int m) {hour = h;minute = m;

}

public void addMinutes (int m) { int totalMinutes =

((60*hour) + minute + m) % (24*60); if (totalMinutes<0)

totalMinutes = totalMinutes + (24*60); hour = totalMinutes / 60; minute = totalMinutes % 60;

}

� }

Java

Page 11: Java introduction

11

Java

� What Is Java?� Getting Started With Java Programming

– Create, Compile and Running a Java Application

Page 12: Java introduction

12

What Is Java?

� History

� Characteristics of Java

Page 13: Java introduction

13

History

� James Gosling and Sun Microsystems

� Oak

� Java, May 20, 1995, Sun World

� HotJava – The first Java-enabled Web browser

� JDK Evolutions

� J2SE, J2ME, and J2EE (not mentioned in the book, but could discuss here optionally)

Page 14: Java introduction

14

Characteristics of Java� simple

� object-oriented

� distributed

� interpreted

� robust

� secure

� architecture-neutral

� portable

� performance

� multithreaded

� dynamic

Page 15: Java introduction

15

JDK Versions� JDK 1.02 (1995)� JDK 1.1 (1996)� Java 2 JDK 1.2,(1998)� Java 2 JDK 1.3(2000)� JDK1.8(2014) Latest

Page 16: Java introduction

16

JDK Editions� Java Standard Edition (J2SE)

– J2SE can be used to develop client-side standalone applications or applets.

� Java Enterprise Edition (J2EE)– J2EE can be used to develop server-side applications

such as Java Servlet and Java Server Pages. � Java Micro Edition (J2ME).

– J2ME can be used to develop applications for mobile devices such as cell phones.

� Java Enterprise Edition 5(JEE5)– Framework such as Struts,hibernet,spring

.

Page 17: Java introduction

17

Java IDE Tools� Forte by Sun Microsystems � Borland JBuilder

� Microsoft Visual J++

� Web Gain Café

� IBM Visual Age for Java

� Eclipse Helios

� Net Beans

Page 18: Java introduction

18

Getting Started with Java Programming

� A Simple Java Application

� Compiling Programs

� Executing Applications

Page 19: Java introduction

19

A Simple Application

Example 1.1//This application program prints Welcome//to Java! package chapter1;

public class Welcome { public static void main(String[] args) { System.out.println("Welcome to Java!"); }}

RunRunSourceSource

NOTE: To run the program, install slide files on hard disk.

Page 20: Java introduction

20

Creating and Compiling Programs

� On command line– javac file.java

Source Code

Create/Modify Source Code

Compile Source Code i.e. javac Welcome.java

Bytecode

Run Byteode i.e. java Welcome

Result

If compilation errors

If runtime errors or incorrect result

Page 21: Java introduction

21

Executing Applications

� On command line– java classname

JavaInterpreter

on Windows

JavaInterpreter

on Sun Solaris

JavaInterpreteron Linux

Bytecode

...

Page 22: Java introduction

22

Example

javac Welcome.java

java Welcome

output:...

Page 23: Java introduction

23

Compiling and Running a Program

Where are the files stored in the directory?

c:\example

chapter1 Welcome.class

Welcome.java

chapter2

.

.

.

Java source files and class files for Chapter 2

chapter19 Java source files and class files for Chapter 19

Welcome.java~

Page 24: Java introduction

Evolutions

24

Core Java J2EE JEE5

J2EE - Its a Technology used to develop Enterprise Applications like 2,3 or n-tire architecture using a Client/Server model over Distributed Enterprise environment.It Application Uses Java as Programming Language

J2SE - Java Standard Edition is a Programming Language using we can develop Desktop Application, Web Enterprise Application, Mobile Application and much more thing.

Page 25: Java introduction

25

Major Areas of a Java Program

� Exception� Collection(utill package)� Lang package� JDBC� I/O Package

Page 26: Java introduction

Fees Structure

� Fees is not Constant.� If u refer friend it will be varied.

� Registration fees will be 1000/- and remaining 4000 /- pay on during the class.

Batch on :Saturday & Sunday and One week days

26

Page 27: Java introduction

Thank U

27