Compiling and executing Java Program
Step 1: Create a basic Java program that outputs ‘Geeks For Geeks’.
$ nano GFG.java
GFG.java:
Java
import java.io.*; class GFG { public static void main (String[] args) { System.out.println( "Geeks For Geeks" ); } } |
Step 2: Use the java compiler to compile the GFG program.
$ javac GFG.java
Step 3: Finally, use JVM to execute the newly created class file.
$ java GFG
How to install JDK and JRE on Godaddy Server?
GoDaddy VPS is a shared server that provides computational services, databases, storage space, automated weekly backups, 99% uptime, and much more. It’s a cheaper alternative to some other popular cloud-based services such as AWS, GPC, and Azure.Java is a high-level, class-based, object-oriented programming language created by James Gosling in 1995. The JDK (Java Development Kit) is a development environment for building applications in the Java programming language. To know more please visit Java Tutorial. In this article, we will discuss how to install the latest version of JDK and JRE on GoDaddy VPS (Ubuntu).