Let’s get started!
Java is a general-purpose, class-based, object-oriented programming language. We can also use it as a computing platform. It’s a very popular language in application development. Java is used for a variety of things, such as:
Let’s take a look at some of the pros and cons of Java:
Java Platform is a collection of Java programmers that help us develop Java code and run Java applications. It was developed by James Gosling at Sun Microsystems, and it was later acquired by Oracle. The Java Platform has an execution engine, a compiler, and various libraries. There are three major components of the Java platform: Java Development Kit (JDK), Java Virtual Machine (JVM), and Java Runtime Environment (JRE).
Java Development Kit (JDK)
JDK is a development environment that we can use to make Java applets and applications. We can use it on Windows, Linux, macOS, and Solaris. JDK has the tools we need to write programs, and it converts code written in Java into bytecode.
Java Virtual Machine (JVM)
JVM provides a runtime environment for our code. It’s part of the Java Runtime Environment. JVM gives us a way to execute our Java code in a platform-independent way. It comes with a JIT compiler that converts our source code into low-level code to help it run faster.
Java Runtime Environment (JRE)
JRE contains class libraries, loader classes, and JVM, and it’s the tool we use to run our Java programs. It uses package classes and runtime libraries to help us execute our programs.
So, which one should I learn?
No matter which learning path you choose, you’ll learn valuable skills that will help you take your programming to the next level.
Join a community of 500,000 monthly readers. A free, bi-monthly email with a roundup of Educative's top articles and coding tips.