0% found this document useful (0 votes)
72 views

Java

The document discusses key aspects of Java programming including: 1. Java was created in response to issues with C/C++ being non-portable and not platform independent, and the rise of the World Wide Web which demanded portable programs. 2. Java's portability and security were necessitated by these factors. 3. The document outlines Java's history and versions, what Java is, how it differs from C and C++, its characteristics like WORA, and core concepts like OOPs, exceptions, threads, and GUI frameworks like Applets, AWT and Swings.
Copyright
© © All Rights Reserved
Available Formats
Download as PPT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
72 views

Java

The document discusses key aspects of Java programming including: 1. Java was created in response to issues with C/C++ being non-portable and not platform independent, and the rise of the World Wide Web which demanded portable programs. 2. Java's portability and security were necessitated by these factors. 3. The document outlines Java's history and versions, what Java is, how it differs from C and C++, its characteristics like WORA, and core concepts like OOPs, exceptions, threads, and GUI frameworks like Applets, AWT and Swings.
Copyright
© © All Rights Reserved
Available Formats
Download as PPT, PDF, TXT or read online on Scribd
You are on page 1/ 20

JAVA Programming

Dr. M. Sivasakthi Ph.D


Sun Certified Java Programmer
SRM University, VDP-FSH

Objectives

Dept. of CSA
SRM University, VDP-FSH

Why Java is important?


Two reasons
1.Trouble with C/C++ language is that they are not
portable and are not platform independent
languages.
2.Emergence of World Wide Web, which demanded
portable programs

Portability and security necessitated the invention of


Java

Dept. of CSA
SRM University, VDP-FSH

History

- Java SE 8(March 18, 2014)

Dept. of CSA
SRM University, VDP-FSH

Dept. of CSA
SRM University, VDP-FSH

What is Java?

Dept. of CSA
SRM University, VDP-FSH

How Java is different from C?

Dept. of CSA
SRM University, VDP-FSH

How Java is differ from C++?

Dept. of CSA
SRM University, VDP-FSH

How Java is differ from C++?

Dept. of CSA
SRM University, VDP-FSH

How Java is differ from C++?

Dept. of CSA
SRM University, VDP-FSH

Characteristics of Java

Dept. of CSA
SRM University, VDP-FSH

Java Environment

Dept. of CSA
SRM University, VDP-FSH

Dept. of CSA
SRM University, VDP-FSH

WORA(Write Once Run Anywhere)

Dept. of CSA
SRM University, VDP-FSH

Diff: Compiler and Interpreter


SRM University, VDP-FSH

Diff: Applet and Application


• Applet
– Small Program
– Used to run a program on client Browser
– Applets are created by extending the java. Applet .Applet
– Applet application has 5 methods which will be automatically invoked
• Application
– Large Program
– Can be executed on stand alone computer system
– Applications are created by writing public static void
main(String[] s) method.
– Application has a single start point which is main method
Dept. of CSA
SRM University, VDP-FSH

OOPs Concepts

• Abstraction
• Encapsulation
• Polymorphism
• Inheritance

Dept. of CSA
SRM University, VDP-FSH

Exception Handling

Dept. of CSA
SRM University, VDP-FSH

Threads

Dept. of CSA
SRM University, VDP-FSH

Applets/AWT and Swings

• Applet: java.applet.Applet

• AWT: java.awt.*

• Swings: javax.swing.*

Dept. of CSA

You might also like