Java

 

Java Tutorial

Both students and working professionals can benefit from our fundamental Java programming tutorial. Java is a general-purpose, concurrent, secured, object-oriented, class-based, and computer programming language. It is an established, reliable technique.

 Describe Java.


Java is both a platform and a programming language. Programming with Java is high level, reliable, object-oriented, and secure.

Sun Microsystems, a company that is now an Oracle subsidiary, created Java in 1995. The father of Java is thought to be James Gosling. Before Java, its name was Oak. The name Oak was changed to Java by James Gosling and his team because Oak was already a recognised business.

Platform: A platform is any hardware or software environment in which a programme runs. Java is referred to as a platform since it has a runtime environment (JRE) and an API.

Example of Java


Let's take a brief look at an example of Java programming. On the following page, a thorough description of the Hello Java example is provided. 

Simple.java

  1. class Simple{  
  2.     public static void main(String args[]){  
  3.      System.out.println("Hello Java");  
  4.     }  

  Application

3 billion devices, according to Sun, run Java. Currently, Java is used on many different devices. These are a few of them:

Desktop programmes like Adobe Acrobat Reader, Media Player, security software, etc.
Web applications like javatpoint.com, irctc.co.in, etc.
enterprise applications, such banking software.
Embedded Mobile System
Robots for smart cards
Sports, etc.

Java Application Types


Generally speaking, Java programming may be used to construct 4 different kinds of applications:
1) Standalone Program

Desktop applications and window-based applications are other names for standalone programmes. These are conventional programmes that must be installed on each computer. Music Player and antivirus software are a few examples of independent applications. Java allows for the development of standalone applications using AWT and Swing.
Website Application

A web application is a programme that executes on the server and generates dynamic pages. Nowadays, Java web applications are made using technologies like Servlet, JSP, Struts, Spring, Hibernate, and JSF.



3) Business Application

An enterprise application is a distributed application, like a banking application or another type. High-level security, load balancing, and clustering are some of its benefits. EJB is a Java tool for building enterprise applications.
4) App for mobile devices

A mobile application is an application designed specifically for mobile devices. Today, mobile applications are made with Java ME and Android.
 

Platforms / Editions for Java


Java is available in 4 platforms or editions:
 

1 Java SE (Java Standard Edition)


It is a Java development environment. Java programming APIs like java.lang, java.io, java.net, java.util, java.sql, java.math, etc. are included in it. OOPs, String, Regex, Exception, Inner Classes, Multithreading, I/O Stream, Networking, AWT, Swing, Reflection, Collection, etc. are among the fundamental subjects covered.

Java EE 2 (Java Enterprise Edition)


It is an enterprise platform mostly utilised for the creation of enterprise and web applications. It is constructed on top of the Java SE foundation. It covers subjects like JSP, Servlet, Web Services, EJB, JPA, and more.

Java ME 3 (Java Micro Edition)


It is a little platform made specifically for mobile apps.

JavaFX

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