0% found this document useful (0 votes)
16 views9 pages

Overview of Java Programming History

Uploaded by

HUSSAINI T
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
16 views9 pages

Overview of Java Programming History

Uploaded by

HUSSAINI T
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd

Java History

• Java is a high level programming language


• It is created by james gosling by sun microsystems.
• Java is a object oriented programming.
• It is used to write a program on multiple os.
• It runs on different platforms like windows , mac, unix.
• It is also called as WORA. Write once,runs anywhere.
• Java is set of features of c & c++.
• Java supports both stand alone applications and web applications.
Characteristics of java

• Java Is Object-Oriented - oops concepts


• Java Is Distributed – share single project
• Java Is Interpreted – compiled and interpreted
• Java Is Robust and Secure – exceptional handling
• Java Is Simple
• Java’s high Performance
• Java Is Multithreaded – handling multiple tasks simultaneously
• Java Is Dynamic and extensible – class libraries and methods are linked.
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 servlets
and Java ServerPages.

• Java Micro Edition (J2ME).


• J2ME can be used to develop applications for mobile devices such as cell
phones.
class simple{
public static void main(String args[ ]){
[Link]("Hello Java");
}
}
• class keyword is used to declare a class in Java.
• public keyword is an access modifier that represents visibility
• static is a keyword. If we declare any method as static, it is known as the static
method. The core advantage of the static method is that there is no need to
create an object to invoke the static method.
• void is the return type of the method. It means it doesn't return any value.
• main represents the starting point of the program.
• String[] args or String args[] is used for command line argument.
• [Link]() is used to print statement. Here, System is a class, out
is an object of the PrintStream class, println() is a method of the PrintStream
Formatting the Output
• At times we want the output of a program to be printed in a given
specific format. In the C programming language this is possible
using the printf( ) function.
• There are two methods that can be used to format the output in
Java:
• Using the printf( ) Method
• Using the format( ) Method
Format Data Type Output
Specifier
%a floating point ( except BigDecima l) Returns Hex output of floating-point number.
%b Any type " true " if non-null, " false " if null
%c Character Unicode character
%d integer ( incl. byte, short, int, long, Decimal Integer
bigint )
%e floating point Decimal number in scientific notation
%f floating point Decimal number
%g floating point Decimal number, possibly in scientific notation
depending on the precision and value.
%h any type Hex String of value from hashCode( ) method.
%n None Platform-specific line separator.
%o integer ( incl. byte, short, int, long, Octal number
bigint )
%s any type String value
%t Date/Time ( incl. long, Calendar, %t is the prefix for Date/Time conversions. More
Date and TemporalAccessor ) formatting flags are needed after this. See Date/Time
conversion below.

You might also like