Java Introduction

What is Java?

Let us fist Understan what is java

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.

Platform: Any hardware or software environment in which a program runs, is known as a platform. Since Java has a runtime environment (JRE) and API, it is called a platform.

Java Example

Let’s have a quick look at Java programming example. A detailed description of Hello Java example is available in next page.

Test.java

  1. class Test{
  2.     public static void main(String args[]){
  3.      System.out.println(“Hello i am Java”);
  4.     }
  5. }

Test it Now

Application

According to Sun, 9 billion devices run Java. There are many devices where Java is currently used. Some of them are as follows:

  1. Web Applications such as irctc.co.in, javatpoint.com, etc.
  2. Enterprise Applications such as banking applications.
  3. Mobile
  4. Embedded System
  5. Smart Card
  6. Robotics
  7. Games, etc.
  8. Desktop Applications such as acrobat reader, media player, antivirus, etc.

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

In Java an application that runs on the server side and creates a dynamic page is called a web application. Thers are  Servlet, JSP, Struts, Spring, Hibernate, JSF, etc. technologies are used for creating web applications Currently.

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.

Java Platforms / Editions

There are 4 platforms or editions of Java:

1) Java SE (Java Standard Edition)

It is a Java programming platform. It includes Java programming APIs such as java.lang, java.io, java.net, java.util, java.sql, java.math etc. It includes core topics like OOPs, String, Regex, Exception, Inner classes, Multithreading, I/O Stream, Networking, AWT, Swing, Reflection, Collection, etc.

2) Java EE (Java Enterprise Edition)

It is an enterprise platform that is mainly used to develop web and enterprise applications. It is built on top of the Java SE platform. It includes topics like Servlet, JSP, Web Services, EJB, JPA, etc.

3) Java ME (Java Micro Edition)

It is a micro platform that is dedicated to mobile applications.

4) JavaFX

It is used to develop rich internet applications. It uses a lightweight user interface API.

Prerequisite

To learn Java, you must have the basic knowledge of C/C++ programming language.

 

Related Posts

Leave a Reply

Your email address will not be published. Required fields are marked *