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

Are static members inherited to sub classes?

642


What is the best definition for data?

522


Hi.... I applied for the post of scientific officer/Engineer-SB(Programmer).Please post the syllabus and sample papers.

1509


What is functional interface in java?

515


If a class is declared without any access modifiers, where may the class be accessed in java programming?

659






Can a hashset contain duplicates java?

497


What is the epoch date?

569


Why doesn't the java library use a randomized version of quicksort?

547


Similarity and difference between static block and static method ?

536


What are methods in java?

540


What advantage do java's layout managers provide over traditional windowing systems?

548


Implement two stacks using a single array.

575


Explain the importance of throws keyword in java?

569


What is the use of default method in interface in java?

555


What is factor r?

528