explain System.out.println
Answer Posted / rajashekhar p
exactly System.out.println();
Solution
System is a Predefined public final class in the
java.lang package.
and out is the static variable of type PrintStream.
and println() method is contain in PrintStream class..
Hence we can invoke this method through class name (i.e
System)
code like as follows........
final class System{
static PrintStream out;
}
class PrintStream{
println();
-----------
------------
}
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
What is the driver class?
What do you mean by platform independence? What is an interface?
what is difference between equals and ==?
What is your platform?s default character encoding and how to know this?
Can we override the overloaded method?
Explain about the security aspect of java?
What is the purpose of encapsulation?
Is it possible to define a method in java class but provide it’s implementation in the code of another language like c?
What is use of a abstract variable?
What is a local block?
What will be the default values of all the elements of an array defined as an instance variable?
java program with complete 4 oops concepts implemented example
What are the different ways of creating thread?
What is the purpose of a transient variable?
What is string intern in java?