The java programming language is an object-oriented programming language that contains complete information, syntax and examples of java program for the beginner's. In this online java programming tutorials for beginners helps you to how to write java program, compile java command as well as how to install and configure java.
This Java tutorial for beginners is very useful for a person new to Java. You will learn the basic of Java and quickly develop and test simple program.
- First we will ensure that the Java is installed and configured on your computer.
- Lets write an application in Java that prints current date on console.
For this go to console and type Java. If Java is not installed and configured, first install and configure Java on your computer.
public class CurrentDate { public static void main (string [] args){ system.out.println(new java.util.date()); } }
Compile and execute Java Program.
Java compile command: compile command for java is as given below.
-> javac filename.java
Java execute command: execute command for java is
-> java filename
Output of Java Beginners Example Code
Related Java Tutorials for Beginners
- Eclipse Java Tutorial for Total beginners
- Fundamental of Java Programming
- Features of Java
- Java SE Fundamentals