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 |
Why do we need strings in java?
What is the full form of jpeg?
What does %d do in java?
Enlist few advantages of inheritance?
What is adapter class?
How do you clear a list in java?
How do you input a string in java?
What are the two parts of a conditional statement?
Can you instantiate the math class?
How do you achieve singleton?
What is the difference between processes and threads?
What are the differences between string, stringbuffer and stringbuilder?