મિત્રો, આ Tutorial માં આપણે શીખીશું ખૂબ જ સરળ “Hello World” નો પ્રોગ્રામ. જે તમને Java ના Practical માં કામ લાગશે. તો ચાલો મિત્રો શરૂ કરીએ Hello World in Java.
Aim: Install JDK, Write a simple Hello World, Similar Java Program, Compilation, Debugging, Executing Using Java Compiler and Interpreter
Code:
HelloWorld.java
public class HelloWorld
{
public static void main(String[] args)
{
System.out.println("Hello World");
}
}
Output:

આ પણ વાંચો – How to Compile Java Program?
આ પણ વાંચો – How to Run Hello World in Java?
આ પણ વાંચો – How to run Hello World in GDB Compiler?