System.out.println("somestring"); It will create any object
or not

Answer Posted / prajakta

yes...Here System is a pre-defined class & out is a static
variable of that class.So we use "System.out" i.e
(className.variableName)..which gives you printstream class
object..now that object is used to call non-static method
of printstream class(println)i.e. obj.methodName();

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is %02d?

571


What is the difference between an array and an array list?

495


What is the difference between a synchronized method and a synchronized block?

597


Are registers volatile?

521


What are the advantages of user defined functions?

545






Which method cannot be overridden in java?

582


Can an abstract class be a final class?

524


What is computer compiler?

523


What do you understand by the term singleton?

573


How do you use substring in java?

534


How are java objects passed to a method and what are native methods?

585


If we allocate the memory using 'new' & de-allocated using 'free' then what will happen?

584


How do we access static members in java?

620


What is a default method?

511


Why collection doesn’t extend cloneable and serializable interfaces?

632