System.out.println("somestring"); It will create any object
or not
Answers were Sorted based on User's Feedback
Answer / manish pal
yes it create 2 objects
first for string literal
second for print stream
| Is This Answer Correct ? | 10 Yes | 0 No |
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 |
What are the approaches that you will follow for making a program very efficient?
Is there any difference between nested classes and inner classes?
Is it necessary for the port addresses to be unique? Explain with reason.
what is servlet filter?
What is the difference between reader/writer and inputstream/output stream?
Tell us something about set interface.
What is Restrictions in hibernate?
Is break statement can be used as labels in java?
What is the use of keywords in java?
Iterator in the HashMap is fail-safe means what?
Can we sort a map in java?
Is upper case in java?