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: Fedde Bakker   on Aug 07

check out the javadoc for System. you'll see that out is a variable,
but it's a variable  of type PrintStream. PrintStream has the method
println()

so, variables  can have methods if the variable is an object with
methods, and not a primitive (int, float, byte, char, etc)

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: