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 |
String is mutable or immutable?
Can you give names of Container classes?
What is the significance of continue jump statement? Explain with an example.
What java ide should I use?
How do you convert an int to a string in java?
How we can make copy of a java object?
What is independent and dependent variables in research?
How can I debug the Java security exceptions and AccessControlExceptions?
What is difference between checked and unchecked exception in java?
What is the use of object and class classes?
What does function identity () do?
What is java developer skills?