How to compile your java program
javac filename.java
eg.
javac -cp *.jar javafile.java
java filename(without the suffix .class)
reference
Java tutorial: Learn Java Programming with examples
Unit Testing with JUnit - Tutorial:This tutorial explains unit testing with JUnit 4.x and JUnit5. It explains the creation of JUnit tests. It also covers the usage of the Eclipse IDE for developing software tests.