Java Standard Edition: Basics
Java Fundamentals
1 Introduction
📘 Java SE
Java is a high-level, class-based, object-oriented and general-purpose programming language and computing platform intended to let programmers write once, run anywhere (WORA). The type system is static, strong and safe.
It is widely used for developing applications for web, mobile, and desktop environments. Java is known for its reliability and security, making it a perfect choice for developing enterprise-level applications, that is JEE (Java Enterprise Edition).
2 Java SE
Java SE (Java Platform, Standard Edition) is a set of libraries, tools, and technologies that provide a complete environment for developing and deploying Java-based applications. Java SE includes the:
- Java Development Kit (JDK), which contains the tools and libraries necessary for developing and running Java programs,
- as well as the Java Runtime Environment (JRE), which is used to run Java programs on a computer.
Java SE is the core platform for Java-based software development, and is used by millions of developers around the world to create a wide variety of applications, from desktop and mobile applications to enterprise-level systems.
Java SE also includes a set of standard libraries, which provide a wide range of functionality, including basic input/output, networking, security, and graphical user interface (GUI) components.
3 Programming steps
he steps in writing a Java program is illustrated as above:
- Write the source code
Person.java
. - Compile the source code
Person.java
into Java portable bytecode (or machine code)Person.class
using the JDK’s Java compiler by issuing the commandjavac Person.java
. - Run the compiled bytecode
Person.class
, using the JDK’s Java Runtime by issuing the commandjava Person
..
4 Type system
- Safe: Java’s type system helps to prevent errors by ensuring that values stored in variables are always of the correct type. This helps to avoid type-related runtime errors and makes Java programs more reliable.
- Static: Java is a statically-typed language, which means that the type of a variable is determined at compile time, rather than at runtime. This allows the Java compiler to catch type errors before the program is executed, making it easier to find and fix errors in your code.
- Strong: Java has a strong type system, which means that type conversions (also known as typecasting) between different types are not allowed unless they are explicitly specified by the programmer. This helps to prevent unintended type errors and makes Java programs more predictable and easier to understand.
5 And .. what is JEE?
JEE (Java Platform, Enterprise Edition) is a collection of technologies and standards for building enterprise-level applications using the Java programming language.
EE provides a set of APIs and tools for developing distributed, transactional, and secure Java applications that can run on a variety of devices and environments, including web and mobile.
JEE is often used for building large-scale, complex, and mission-critical applications in industries such as finance, healthcare, and e-commerce.