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 purpose of the strictfp keyword?

0 Answers  


what is the difference b/w PUT and POST method to send data to the server

5 Answers   Mind Tree,


What is flag in python?

0 Answers  


class A{ class B{ } } in which name u save the file,its the program compile?

6 Answers   HCL,


Explain about interrupt() method of thread class ?

0 Answers  






Write a program based on Java script program.

0 Answers   Atos Origin,


What is the loop in java?

0 Answers  


What are the Static and Dynamic Variables? Differentiate them.

0 Answers   CGI,


we have a 100 classes at that time which class we have to write main method? pls help me

6 Answers   Wipro,


What are listeners in java and explain ?

2 Answers   TCS,


How do you read a char in java?

0 Answers  


What is the difference between static method and instance method in Java?

0 Answers   SwanSoft Technologies,


Categories