Monday, February 27, 2017

How To Write an Simple Java Program

I am going to teach you How To Write an Simple Java Program and trust me its very easy anyone can able to write a java program.

STEP 1: Need a Platform For Writing Java Program

The best platform for writing java program is Oracle Netbeans.

You can download it from here Download Netbeans

STEP 2: You need to create a class

Its very easy just write public class MyClass {} not this public class My Class {}  


 STEP 3: Making of Main Function

First you need to know what actually is main function ?

Main Function is an entry point of program. It is the point from where compiler start reading the program. 

Syntax:- public static void main()

 

STEP 4: Writing Print Command

For print anything  in java program you need to write this command:-

System.out.println("Type Here for Printing"); or if you are using Netbeans you can just type sout and press tab

 You successfully written a program in java.

You can also view the video by clicking on this link Print Anything using Java


3 comments: