Programming - Streams and Files - Discussion

You Are Here :: Home > JAVA > Streams and Files - Discussion

 



Q.

why we use system.out?                         


A. because 'out' is a static variable in system class B. because 'out' is a final variable in system class
C. because 'out' is a non-static variable in system class D. because 'out' is a global variable in system class

Answer: Option A
Explaination:

 


because 'out' is a static variable in system class and we know static members are accesses using the name of the class,when we access them from outside the class.




Discussion

Your Comments Goes here...
NameDiscussion