Oracle Certified Professional Java Programmer: Leading TO

You might also like

Download as pptx, pdf, or txt
Download as pptx, pdf, or txt
You are on page 1of 17

LEADING TO:

ORACLE CERTIFIED PROFESSIONAL JAVA PROGRAMMER

Course Objectives
Upon completing the course, you will understand

Create, compile, and run Java programs Java Fundamentals Java control flow Integrated Development Environments Array Strings Object-oriented programming Math and Dates Java Swing Interfaces and Abstract Classes

Course Objectives, cont.


You will be able to
Develop programs using NotePad, TextPad, and

Eclipse Write Java programs using primitive data types, control statements, methods, and arrays. Create and use methods Develop a GUI interface and Java applets Implementing Servlet/JSP Write interesting projects Establish a firm foundation on Java concepts

Introduction to Java
Java is a high-level and object-oriented

programming language. Sun Microsystems. Java is a 3rd generation programming language.


C, FORTAN & PERL etc.

Combines the features of C and C++.


Object-oriented concepts from C++. Syntax of C programming.

Runs on Java Virtual Machine (JVM).


Stand-alone programs called Applications.

Introduction to Java, cont.


Web-based program called Applets.

Applications are run independently.


Applets are on Java enabled web browser.
Netscape Navigator, Microsoft Internet Explorer etc.

World Wide Web (WWW) called Internet. Features cross-platform communicating &

object-oriented programming. Java is a basic Internet language.

History of Java
James Gosling in June 1991.

OAK
Feature Embedded & Electronic communication

devices.
Java
Feature Internet Application. With full power on March 23, 1995.

Powerful general-purpose and Internet

programming language. Redesigned for developing Internet Applications.

Features of Java
Simple
Utilizes features in C++. Simplifies complex concepts in C++. Pointers etc.

Platform Independent
Write code on one platform and run on any other

platform. WORA (Write Once, Run Anywhere.) Portable language.


Object-oriented
Java uses an Object-oriented programming model.

Features of Java, cont.


Uses Objects to design and develop application. OOP features Encapsulation, Inheritance etc.

Compiled
Compiled into byte-code using a Java compiler. Byte-code executes the Java program in any

platform using a Java Interpreter.


Multi-threaded
Execute multiple threads (small piece of a several

task) concurrently.

Features of Java, cont.


Robust
Java supports Automatic Garbage Collection. Memory Management no concern of memory

leak. Exception any error can be captured and managed effectively.


Secure
OOP concepts provides the basic security for java

program data. Byte-code adds security to Java programs. Java Applets makes working on the Internet secure.

Features of Java, cont.


Extensible
Java supports Native methods. To access functions from other languages such as

C++.
Java in the Internet
Cross-Platform Java supports cross-platform execution through its bytecode. Write Once Run Anywhere features.

Support to HTML
Java programming language provides supports to

html. Package jipxhtml was developed in Java to analyze and create HTML 4.0 documents.

Features of Java, cont.


Support to Internet Protocols
HTTP, FTP, IP, TCP/IP, SMTP, DNS etc.

Network-based
Java provides APIs to supports Network computers. In many areas Java is used to develop applications.

Java plays a vital role


Embedded Systems Chatting Applications

Windows and Web Security


Mobile Technologies

Java is a Platform Independent Language


Simple, Platform Independent and Object-oriented

etc.
Object-Oriented Programming. Java is Platform Independent.

Object Oriented Programming


Basic concepts Class, Object & Abstraction.

Three principles Encapsulation, Inheritance &

Polymorphism. Class
It contains both data and executable code.

Object
Object is an instance of a class.

Abstraction
Nothing but data hiding.
Using Interface & Abstract class.

Object Oriented Programming, cont.


Encapsulation
To protect code and the data from hacker. Using Access Protection.

Inheritance
One class acquires the property of another class. Using extends and implements.

Polymorphism
Same name but different Operations.

Using Overloading and Overriding.

Java is a Platform Independent


Writing code in one operating system (windows

XP) and executing that code on another platform (Linux).


Write Once and Run Anywhere this is called

Platform Independent.
Byte Code is the machine language of the Java

Virtual Machine.

Byte Code Execution

Sun JVM Microsoft JVM & IBM JVM etc. Same.class files can run on various platforms. Proves Java is a Platform Independent Language.

First Java Program


Text editors

Notepad & Edit window (command prompt) by

default. Notepad is an easy way to write Java program. TextPad 5.4.2 see.(DAY1a jdk7 & TextPad
Installation)
Eclipse IDE see.(DAY3c Eclipse Installation)

Lets begin writing Java codes


see.(EXER01 JavaClassExample)

You might also like