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 is unsigned char?
Explain with example the concept of constant variable in java.
What are the methods of object class ?
What's the base class of all exception classes?
Difference between concurrent hashmap and hashtable and collections
How do listeners work?
what is java
What is use of inner class in java?
What is the locale class in java programming?
What is the difference between interpreter and compiling ?
Is an integer an object?
Enlist diffrent types of inheritance supported by java?