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 unsigned char?

0 Answers  


Explain with example the concept of constant variable in java.

0 Answers   HCL,


What are the methods of object class ?

0 Answers  


What's the base class of all exception classes?

0 Answers  


Difference between concurrent hashmap and hashtable and collections

0 Answers  






How do listeners work?

0 Answers  


what is java

3 Answers   Tech Mahindra,


What is use of inner class in java?

0 Answers  


What is the locale class in java programming?

0 Answers  


What is the difference between interpreter and compiling ?

7 Answers   TCS,


Is an integer an object?

0 Answers  


Enlist diffrent types of inheritance supported by java?

0 Answers  


Categories