||BASIC OF JAVA|| BY @KARAN.NANGUDE

What is Java? 


It is an object-oriented language similar to C++, but with advanced and simplified features. Java is free to access and can run on all platforms.


Java is: –

  • Concurrent where you can execute many statements instead of sequentially executing it.
  • Class-based and an object-oriented programming language.
  • Independent programming language that follows the logic of “Write once, Run anywhere” i.e. the compiled code can run on all platforms which support java.


Types of Java Applications:



There are three types of Java-based applications.

  1. Standalone application: A standalone application is one that can be executed independently and would execute and produce some output either as a UI or on the JVM console. Any java class with the main method can be considered a mini standalone java application.

  2. Web Application: The websites that are developed using java and HTML are called web applications in java. servlets and JSP are used to develop web application in java

  3. Enterprise Application: Enterprise application installed inside a server and user must have enterprise app. So, J2EE provides all the resources to develop enterprise applications.


Java Platforms / Editions:


There are 4 platforms or editions of Java:

  1. Java SE: It is a Java programming platform. It includes Java programming APIs such as java.lang, java.io, java.net, java.util, etc. It includes core topics like OOPs, string, Inner classes, Multithreading, I/O Stream, Networking, AWT, etc.
  2. Java EE: 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: It is a micro platform which is mainly used to develop mobile applications.
  4. JavaFX: It is used to develop rich internet applications. It uses a light-weight user interface API.

 

FEATURE OF JAVA:

The main objective of the Java programming language was to make it a portable, simple, and secure programming language. Apart from this, there are also some excellent features which play an important role in language.


Some of the most important features in the Java programming language are given below.

 

  1. Simple
  2. Object-Oriented
  3. Portable
  4. Platform independent
  5. Secured
  6. Robust
  7. Architecture neutral
  8. 8.Interpreted
  9. High Performance
  10. Multithreaded
  11. Distributed
  12. Dynamic


DATA TYPES IN JAVA:

There is various type of data types in java which you can see in the figure given below




 

Comments