Introduction To Java Language: Saravana Kumar
Introduction To Java Language: Saravana Kumar
Introduction To Java Language: Saravana Kumar
Java Language
Saravana kumar
Java Language History
JDK Evolutions
J2SE, J2ME, and J2EE (not mentioned in the book, but it
is good to discuss here).
Why Java?
Java Is Architecture-Neutral
Java Is Portable
Java's Performance
Java Is Multithreaded
Java Is Dynamic
Characteristics of Java
Java Is Simple
Java Is Object-Oriented
Java Is Distributed
Java’s performance Because Java is
Java Is Interpreted architecture neutral, Java programs are
Java Is Robust portable. They can be run on any
Java Is Secure platform without being recompiled.
Java Is Architecture-Neutral
Java Is Portable
Java's Performance
Java Is Multithreaded
Java Is Dynamic
Characteristics of Java
Java Is Simple
Java Is Object-Oriented
Java Is Distributed Multithread programming is smoothly
Java Is Interpreted integrated in Java, whereas in other
languages you have to call procedures
Java Is Robust specific to the operating system to enable
Java Is Secure multithreading.
Java Is Architecture-Neutral
Java Is Portable
Java's Performance
Java Is Multithreaded
Java Is Dynamic
Characteristics of Java
Java Is Simple
Java Is Object-Oriented
Java Is Distributed Java was designed to adapt to
Java Is Interpreted an evolving environment. New
code can be loaded on the fly
Java Is Robust without recompilation. There is
Java Is Secure no need for developers to
Java Is Architecture-Neutral create, and for users to install,
major new software versions.
Java Is Portable New features can be
Java's Performance incorporated transparently as
Java Is Multithreaded needed.
Java Is Dynamic
A Simple Application
On command line
Create/Modify Source Code
javac file.java
Source Code
If compilation errors
Bytecode
Run Byteode
i.e. java Welcome
Result
On command line
java classname
Bytecode
output:
Welcome to Java
22
Java Comments
import java.util.Scanner;
// import Scanner class only
import java.util.*;
//import all the classes in package java.util
Console Input Using the Scanner Class