0% found this document useful (0 votes)
3 views2 pages

Introduction Tojava

Java is a high-level, robust, object-oriented programming language developed by Sun Microsystems in 1995, known for its platform independence through the use of byte code. It supports four main types of applications: standalone, web, enterprise, and mobile applications, utilizing various technologies for each type. Key components of Java include the main() method for execution and the System class for output operations.

Uploaded by

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

Introduction Tojava

Java is a high-level, robust, object-oriented programming language developed by Sun Microsystems in 1995, known for its platform independence through the use of byte code. It supports four main types of applications: standalone, web, enterprise, and mobile applications, utilizing various technologies for each type. Key components of Java include the main() method for execution and the System class for output operations.

Uploaded by

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

Java is a programming language and a platform.

Java is a high level, robust, object-


oriented and secure programming language.
Java was developed by Sun Microsystems (which is now the subsidiary of Oracle) in the year
1995. James Gosling is known as the father of Java. Before Java, its name was Oak. Since
Oak was already a registered company, so James Gosling and his team changed the name
from Oak to Java.
Types of Java Applications
There are mainly 4 types of applications that can be created using Java programming:
1) Standalone Application
Standalone applications are also known as desktop applications or window-based
applications. These are traditional software that we need to install on every machine.
Examples of standalone application are Media player, antivirus, etc. AWT and Swing are
used in Java for creating standalone applications.
2) Web Application
An application that runs on the server side and creates a dynamic page is called a web
application. Currently, Servlet, JSP, Struts, Spring, Hibernate, JSF, etc. technologies are used
for creating web applications in Java.
3) Enterprise Application
An application that is distributed in nature, such as banking applications, etc. is called an
enterprise application. It has advantages like high-level security, load balancing, and
clustering. In Java, EJB is used for creating enterprise applications.
4) Mobile Application
An application which is created for mobile devices is called a mobile application. Currently,
Android and Java ME are used for creating mobile applications.
public static void main(String[] args) {
[Link]("Hello World");
}
Any code inside the main() method will be executed.
Every Java program has a class name which must match the filename, and every program
must contain the main() method.
The curly braces {} marks the beginning and the end of a block of code.

System is a built-in Java class that contains useful members, such as out, which is short for
"output". The println() method, short for "print line", is used to print a value to the screen
(or a file).

JAVA BYTE CODE:


Byte Code can be defined as an intermediate code generated by the compiler after the
compilation of source code (JAVA Program). This intermediate code makes Java a platform-
independent language.
Compiler converts the source code or the Java program into the Byte Code (or machine
code), and secondly, the Interpreter executes the byte code on the system. The Interpreter
can also be called JVM (Java Virtual Machine). The byte code is the common part between
the compiler (which creates it) and the Interpreter (which runs it).

You might also like