

Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!


Java is a general-purpose, object-oriented programming language which is developed by Sun Microsystems (Oracle) in 1995. Java designed to be robust, secure, and platform independent. Developers choose Java because of these reasons. Platform-independent, Object-oriented programming, robust and secure, large and active community, vast application areas, high-level language, general-purpose, and concurrent. There are phases of Java that its technology provides with an extensive suite of tools. A compiler (javac), an interpreter (java), a documentation generator (javadoc), and a class file packaging tool. Here are the stages of a Java program execution. Stage Tool to use Output Write a program Text editor or IDE A file with .java extension Compile the program Java compiler (javac) A file (java bytecodes) with .class extension Run the program Java interpreter (java) Obtain the output Java available in two variants. Those are Java Standard Edition (JavaSE), Java Enterprise Edition (JavaEE). JavaEE encompasses all the advanced features required for enterprise solutions. But there is no necessary to download JavaEE because the learning process can continue using JavaSE. Developer Tools are needed after install Java into computer. Here developer can use text editor (e.g. Notepad), or Integrated Development Environment (IDE) (e.g. Intellij, Eclipse, NetBeans) to write Java source code. IDE offer a user-friendly environment that significantly enhances the efficiency and speed of application development. They designed to provide specially for writing, debugging, testing, and deploying applications.
Here are steps to how to code of simple Java program using and IDE: Hello World! Step 01: Open IDE. Step 02: Click on “New Project”. Step 03: Give a project name for Java project named “First Program”. And set a relevant location to save project. Step 04: Create a new class in src folder path named “HelloWorld”. Step 05: Add below code in created class. public class HelloWorld{ public static void main(String[] args){ System.out.println(“Hello World!”); } } Step 06 : Click on “Save” from menu or use Ctrl+S to save program. Step 07: Then CLICK ON “Build” and then “Run” to run the program. Output: Hello World!