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: Alfonsine Miller   on Aug 07

you declare variable  (normal variables, and
objects...) like this ? I am sure you do...


type name value
~~~~~~~~~ ~~~~~~~~ ~~~~~~~~~~~~~~~
int i = 3;
PrintWriter out = new PrintWriter();


so every object is a variable of its class...
Similarly the variable(object) out is declared in
class System...

so we can access it like

System.out

but as it is an object so we can call any of its
method...

System.out.println();

got it... ?

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: