FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

100DaysOfCoding/JavaReview at master · chini5ko/100DaysOfCoding · GitHub

Repository navigation

Latest commit

 

History

History

readme.md

A java Review

Main Method

public class Water{
    public static void main(String[] args){
        System.out.println("H20");
    }
    
}

Compile (example 101)

"javac" is the command to compile a human text file to a Java bytecode (.class) file to be executed by a Java Virtual Machine

javac Water.java

It should output .class files

Run java files (example 101)

"java" command executes the Java bytecode without typing the (.java) or (.class) after the file's name. It actually execute the .class file.

java Water

Console output (example 101)

H20


Back | FazBrowse Home | New Git URL