System.out.println("somestring"); It will create any object
or not
Answer Posted / 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 |
Post New Answer View All Answers
Differentiate between stringbuffer and stringbuilder in java.
What are void methods?
What is exception hierarchy in java?
What is difference between final and finally in java?
What is the size of boolean variable?
Is string is a class in java?
What is the final class?
Can we pass a primitive type by reference in java? How
What are the basic control structures?
Difference between comparator and comparable in java?
What is return keyword in java?
Can you extend singleton class?
What are desktop procedures?
Which class represents the socket that both the client and server use to communicate with each other?
how does multithreading take place on a computer with a single cpu? : Java thread