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 |
How do you use find and replace?
Write a method that will remove given character from the string?
Compare overloading and overriding?
What is java util?
How can you reverse a string?
Where are local variables stored?
What is the difference between interpreter and compiling ?
What is the final field modifier?
When can we say that threads are not lightweight process in java?
Difference between abstract class and Interfaces?
7 Answers CTS, iFlex, PA Consulting, Sai Softech, Value Chain,
Can an integer be a string?
State the main difference between c++ and java?