Lesson: The Java Technology Phenomenon The Java Tutorials > Getting Started

This trail discusses classes from the Java platform that are essential to most programmers. The exact directory depends on the distribution file you have expanded. To develop or run Java applications, you need to download and install the Java SE Development Kit.

  • Popular for its versatility and ability to create a wide variety of applications, learning Java opens up your possibilities when coding.
  • This trail discusses classes from the Java platform that are essential to most programmers.
  • Java is an object oriented language and some concepts may be new.

I understand that you are eager to type some code in your editor and run it to see your first Java application in action! Do not worry, your expectation will be fulfilled by the end of this tutorial. But before we move on, I would like to do through several elements that you Java SE Lessons need to know to fully understand what you are doing. The Java EE Tutorials describe how to develop enterprise applications for the Java Platform, Enterprise Edition, and deploy on the Sun Java System Application Server. This learning trail is focused on Java SE applications.

Oracle Java SE Training and Certification

You cannot compile your code with the tools provided in the JRE. Once the compiler produced the binary file that you need, you can execute this binary file, that will your program. Compiling some code may fail; your code has to be correct for the compiler to produce an executable version of it. Do not worry, this page gives you the code you are going to compile.

You need to be very cautious while setting up these two variables because a single mistake like an added white space of a missing semicolon will result in failure. You need to be very cautious while setting up these two variables, because a single mistake like an added white space of a missing semicolon will result in failure. What you get is a ZIP file of about 200MB that you can open with any ZIP utility software. You can unzip the content of this file anywhere on your computer. As of now, downloading “Java” means downloading the Java Development Kit, also known as the JDK.

Specialized Trails and Lessons

There is technical code in this class that may not be very clear to you. Do not worry; all you need to do is to compile it following the steps described in the previous section. So far your class is empty; there is no executable code in it. If you were able to compile it properly then you can advance to the next step and execute some code. You may have error messages telling you that the compiler cannot compile your code because of errors in your Java code.

Java SE Lessons

Selected tutorials have been printed; see the Related Resources box to the right. Groups of related lessons are organized into “trails”. Note that starting with Java SE 11 you can also merge these two steps into one, by executing a .java file directly. You can use these feature only if you are executing a program that is written in a single file.

Related courses and paths

This way of executing your java application does not work if your java code spans more than one file. Java SE seems to be losing its charm as it does not provides many useful functionalities and is used for only basic features of Java programming language. The ongoing trend shows decreasing use of Java SE, and more people use other programming platforms such as Java EE, Java ME, and Python. Java is currently focusing on data management and machine learning ecosystems. Concurrency explains how to write applications that perform multiple tasks simultaneously.

  • Step 3.) After completing the installation, your JDK and JRE would be downloaded in the program files folder.
  • Regular Expressions are a way to describe a set of strings based on common characteristics shared by each string in the set.
  • Carefully verify the program, fix any errors that you detect, and try again.
  • It is a micro platform that is dedicated to mobile applications.
  • The Java VM requires that the class you execute with it have a main method at which to begin execution of your application.

Carefully verify the program, fix any errors that you detect, and try again. Popular for its versatility and ability to create a wide variety of applications, learning Java opens up your possibilities when coding. With it, you’ll be able to develop large systems, software, and mobile applications — and even create mobile apps for Android.

You should not type this character or paste it, as it is not part of the tar command. Compiling is the second step you need to follow after the creation of your first class. It consists of transforming the Java code you wrote in your MyFirstClass.java file into another format that can be executed. The result of this transformation will be stored in another file created by the compiler. The first step you need to know is that the Java code you are writing is saved in plain text files. In this tutorial, your application will be written in a single text file.

Java SE Lessons