explain System.out.println
Answer Posted / ishant agarwal
System is a final class where it define an class variable out of PrintStream class which is an static
and we can refer a class variable out with System class and println is a method define in PrintStream class
then
while loading an System class it creates an object of PrintStream class
that's why we write it in a way System.out.println();
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
How to find the given number is a prime number or not by getting input from the user
How many types of memory areas are allocated by JVM in java?
Can finally block be used without a catch?
Why char array is favored over string for the storage of passwords?
Explain about class in java?
Will set allow duplicates in java?
Can a java program have 2 main methods?
Is nan false?
What is public/private protected in java?
When does an object becomes eligible for garbage collection in java?
Why string is not a wrapper class?
Can a variable be local and static at the same time?
How do you convert an int to a double in java?
What is integer size in java?
Can I import same package/class twice?