Java Programming
Import statements
#include statements
Where is Java being used
1. JSP 2. Applets 3. J2EE 4. JavaBeans 5. Mobile
Facts about Java
1. Object Oriented 2. Platform independent 3. Simple 4. Secure 5. Architecture neutral 6. Portable 7. Robust 8. Multi threaded 9. Interpreted 10. High Prtformance 11. Distributed 12. Dynamic
Types of java Applications
1. Web application 2. Standalone Application 3. Enterprise Application 4. Mobile Application
Ckass definition
A java program may contain multiple class definitions. Classes are the main and important elements of any java program. These classes are used to plot the objects of real world problems
Java
An Object-oriented programming language developed by Sun Microsystems and released in 1995. JAVA programs are platform independent which means they can be run on any operating system with any type of processor. Java code that runs on one platform does not need to be recompiled to run on another platform, write once, run anywhere (WORA)
Enterprise Application
An application that is distributed in nature, such as banking applications etc.
Applets
Another type of java program that used within a web page to add many new features to a web browser
Platform independent
C and C++ are platform dependency language hence the application programs written in one operating system cannot run in any other operation system
Object oriented
In java everything is an object. Java can be easily expanded since it is based on the object model
Documentation Section
It comprises of a comment line which gives the name program, the programmer's name and some other brief details.
Standalone Application
It is also known as desktop application or window-based application.
Interpreted
JAva byte code is translated on the fly to native machine instructions and is not stored anywhere
James Gosling
Java Developer
Editions of Java technology
Java SE, JEE, JME
Architectural-neutral
Java compiler generates an architecture-neutral object film format which makes the compiled code to be executable on many processors, with the presence Java runtime system.
Simple
Java is designed to be easy to learn. If you understand the basic concept of OOP java would be easy to master
Mobile
Java is used in mobile devices
Mobile Application
Java is used to create application software for mobile devices
Web Application
Java is used to create server-side web apps
JSP
Java is used to create web applications like PHP and ASP, Java server pages used with normal HTML tags
Robust
Java makes an effort to eliminate error prone situations by emphasizing mainly on compile time error checking and runtime checking
Popular Java Editors
Notepad, NetBeans, Eclipse
Main Method Class
Since every java stand alone program requires a main method as the starting point of the program. This class is essentially a part of java program. A simple java program contains only this part of the program
JavaBeans
Something like Visual Basic, a reusable software component that can be easily assemble to create some new advance apps
Package Statement
The first statement allowed in java file is the package statement which is used to declare a package name and it informs the compiler that the classes defined within the program belong to this package package package_name;
J2EE
The software Java 2 Enterprise Edition are used by various companies to transfer data based on XML structured documents.
Secure
With java's secure feature it enables to develop virus-free, tamper-free systems.Authentication techniques are based on public-key encryption
Portable
being architecture neutral and having no implementation dependent aspects of the specification makes java portable
interface statement
interface are like class that includes a group of method declarations. This is an optional section and can be used only when programmers want to implement multiple inheritance
Multi-Threaded
it is possible to write programs that can do many tasks simultaneously
Dynamic
java is considered to be more dynamic than C and C++ since it is designed to adapt to an evolving environment.
Distributed
java is designed for the distributed environment of the internet
High Performance
with the use of just-in-time compilers java enables high performance