What do you Understand about System.out.println Statement | To print Argument | Java For Beginner.

System.out.println Statement

System.out.println is a Java statement that prints the argument passed, into the System.out which is generally stdout.

(1) System – is a final class in java.lang package.
(2) out – is a static member field of System class and is of type PrintStream.
(3) println – is a method of PrintStream class.


Let's Understand through simple Example.

package Helloworld; //this is package

public class BasicProgram //this is class
{
   public static void main(String[] args) // main class where your program runs
   {
      System.out.println("*****Hello World*****");
   }
}



Output:






Related Posts
Java Hello World Program | Java Basic Example | Java language | Netbeans 8.2

Post a Comment

1 Comments