Logo 
Search:

Java Answers

Ask Question   UnAnswered
Home » Forum » Java       RSS Feeds
  Question Asked By: Ashan Kaya   on Aug 07 In Java Category.

  
Question Answered By: Taylor Evans   on Aug 07


System class  belongs to java.lang package.It provides platform independent
resources such as the standard input,output and error streams.All methods and
variables in system  class are public and static.due to this the class need not
be instantiated.

This java.lang package contains predefined input,output streams.

the basic printing methods are from printstream class.it provides references to
a printstream object that can access those methods

The out variable  is a member of the System class.

Since it is a Static variable to retrieve a reference to the out variable u have
to use the syntax

System.out.

Share: 

 

This Question has 5 more answer(s). View Complete Question Thread

 
Didn't find what you were looking for? Find more on System.out.println() Or get search suggestion and latest updates.


Tagged: