Both students and working professionals can benefit from our essential Java programming tutorial. Java is a general-purpose, concurrent, secured, class-based, object-oriented computer programming language. It is a powerful technology that is widely used.
What is Java?
Java is a general-purpose object-oriented programming language and a platform. Java is a high level, robust 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: A platform is a collection of devices and software that serves as the basis for creating and executing applications. Mobile app development, for instance, can be done on platforms like iOS and Android. 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.
Simple.java
-
- class Simple{
-
- public static void main(String args[]){
-
- System.out.println(“Hello Java”);
-
- }
-
- }
Application
According to Sun, 3 billion devices run Java and 12 Million Java developers worldwide. There are many devices where Java is currently used. Some of them are as follows:
-
- Desktop Applications such as acrobat reader, media player, antivirus, etc.
- Web Applications such as irctc.co.in, javatpoint.com, etc.
- Enterprise Applications such as banking applications.
- Mobile
- Embedded System
- Smart Card
- Robotics
- Games, etc.
Types of Java Applications
There are mainly 4 types of applications that can be created using Java programming:
1) Web Application
Web applications are server-side applications that display dynamic content on a website. The most common technologies for creating web applications in Java are Servlets, JSPs, Struts, Spring, Hibernate, JSF and others.
2) Enterprise Application
Distributed applications with high-level security, load balancing, and clustering are known as enterprise apps. EJB is used in Java to construct enterprise apps. such as a banking applications.
3) Mobile Application
Applications created for mobile devices are known as mobile applications. Currently, Java ME and Android are commonly used as platforms for creating mobile applications.
4) 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. AWT and Swing are the tools used in Java to build these applications.
Java Platforms / Editions
There are four different platforms or editions of Java available:
1) Java SE (Java Standard Edition)
This is a Java Programming Platform which contains APIs like java.lang, java.io, java.net, java.util, java.sql, java.math etc. In addition to this, it also includes core topics like OOPs, String, Regex, Inner classes, Multithreading, I/O Stream, Exception, Networking, AWT, Swing, Reflection, Collection, etc.
2) Java EE (Java Enterprise Edition)
On top of the Java SE platform, Java EE includes topics such as Servlet, JSP, Web Services, JPA, EJB, etc. and is mainly used to develop web and enterprise applications.
3) Java ME (Java Micro Edition)
This is a micro platform that is used to develop mobile applications.
4) JavaFX
This edition of Java uses lightweight user interface API to develop rich internet applications.
Prerequisite
You need to have basic knowledge of C/C++ programming language.
Audience
This tutorial is intended for both newcomers and experts.
Problem
If there are any errors in the page, please report to us through the contact form.