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 the simpletimezone class in java programming?

0 Answers  


Q) I have a ArrayList object, in that object i have added 5 integer values, 5 float values, 5 string values. Now question is how can delete particular type of data ( i.e all int values or all float values or string values) in that list object at a time?

3 Answers   Aricent,


What are the latest versions in JAVA related areas?

3 Answers   Netcraft,


what are variables in java

7 Answers   Wipro,


What is close method? How it's different from Finalize & Dispose?

0 Answers   InfoAxon Technologies,






explain the classification of exception and hoew to handle the exceptions

2 Answers  


What are the library functions in java?

0 Answers  


What is the use of 'super' keyword inside a constructor?

0 Answers   Flextronics, Thomson Reuters, Virtusa,


what do you mean by marker interface in java?

0 Answers  


What is the benefit of lambda expressions?

0 Answers  


What is the basically use of finally while we know it is always executed but why?

5 Answers   Oracle, TCS,


When should you use arraylist and when should you use linkedlist?

0 Answers  


Categories