Pageviews

Thursday, 6 June 2013

Java-Getting started

by Unknown  |  in Beginners at  Thursday, June 06, 2013


So,now we will move onto our first Java program.Java uses 'System.in' for inputting the value and similarly 'System.out' for displaying the Output.Here is the simple program to print "Hello World " output on the user screen.We can write codes using


two environments i.e.
  • Command line Arguments
  • Integrated Development Environment(IDE)

In this post,we are using Command Line,because it is the first step for the beginners to write the code using a Text Editor and executing it through Command prompt.

WAP in Java to print "Hello World"
class Print
{
public static void main(String args[])
{
System.out.println("Hello World");
}
}


This program will simply print the message"Hello World" on your screen,you need not to worry about the keywords used in the program,as that will be discussed later.


The Output goes here:



Java



0 comments:

    Popular Posts

Proudly Powered by Blogger.