What is Java?
Java is a general-purpose, high-level programming language known for its portability, security features, and robustness. It is widely used for developing applications ranging from mobile and web to enterprise systems. Java’s platform independence is achieved through its bytecode compilation and the use of the Java Virtual Machine (JVM), allowing it to run on various operating systems.
Why do we use Java?
Java is a very popular programming language you can use to create various software applications. The language’s design prioritizes object-oriented principles, aiming for simplicity in readability, writing, and learning. Millions of developers use Java to build everything from desktop programs to advanced web applications.
Where do we use Java?
- Web-based Applications
- Desktop GUI Applications
- Mobile App Development
- Gaming Applications
- Big Data Technologies
- Distributed Applications
- IoT Applications
- Cloud-based Applications
Java Platforms(Java SE & Java EE)
There are 4 platforms or editions of Java:
1) Java SE (Java Standard Edition).
Java SE (Java Standard Edition) is a widely-used platform for developing and deploying portable applications for desktops, servers, and embedded environments. It provides the core functionality of the Java programming language, including libraries, frameworks, and tools necessary for building and running Java applications on a variety of devices and operating systems.
2) Java EE (Java Enterprise Edition).
Java EE (Java Enterprise Edition) is a platform designed for developing large-scale, enterprise-level applications. It provides an API and runtime environment for developing and running distributed, multi-tiered, scalable, and secure applications. Java EE includes a set of specifications, such as servlets, JavaServer Pages (JSP), Enterprise JavaBeans (EJB), and Java Persistence API (JPA), which facilitate the development of robust and reliable enterprise applications.
Java Platforms(Java ME & Java FX)
There are 4 platforms or editions of Java:
3) Java ME (Java Micro Edition).
It is a micro platform that is mainly used to develop mobile applications.
4) Java FX
It is used to develop rich Internet applications. It uses a lightweight user interface API.
Example: