Follow Our FB Page << CircleMedia.in >> for Daily Laughter. We Post Funny, Viral, Comedy Videos, Memes, Vines...


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

Answers were Sorted based on User's Feedback



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

Answer / aslam

Yes, It will create PrintStream object

Is This Answer Correct ?    20 Yes 4 No

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

Answer / manish pal

yes it create 2 objects
first for string literal
second for print stream

Is This Answer Correct ?    10 Yes 0 No

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

Answer / rakesh

yes it can create

Is This Answer Correct ?    4 Yes 1 No

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

Answer / maulik

yes, it can create..

Is This Answer Correct ?    1 Yes 0 No

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

Answer / 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



More Core Java Interview Questions

What is entry set in java?

0 Answers  


Is set ordered?

0 Answers  


What is the use of predicate in java 8?

0 Answers  


What are Interceptors?

1 Answers  


How to initialize an Applet ?

9 Answers   TCS,






Difference between keyword and identifier.

0 Answers   TCS,


What is 16 bits called?

0 Answers  


What does the three dot emoji mean?

0 Answers  


What is meant by serialisation and deserialisation?

4 Answers  


What is difference between static and final?

0 Answers  


What will happen when using pass by reference in java?

0 Answers   HCL,


Explain about class in java?

0 Answers  






Categories