explain System.out.println

Answer Posted / jacob.p.george

'system' is a public class which is final which can never
be extended..It itself extends object.
'out' is the static object of the class PrintStream.
'println()' is the method of printStream class..
since 'out' is a static object it can be called by using
the class name'system'
so 'Sstem.out.println()'

Is This Answer Correct ?    362 Yes 45 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Can a class be private in java?

535


What is difference between Heap and Stack Memory?

530


What is a subsequence of a string?

541


What are the main differences between notify and notifyAll in Java?

579


Will set allow duplicates in java?

497






Can a method inside a interface be declared as final?

520


What are the three best choices for a development environment?

595


What happens if constructor is private?

558


Why do we need array in java?

527


What is a line break example?

573


Is java map thread safe?

486


What are JVM.JRE, J2EE, JNI?

682


Difference between string s= new string (); and string s = "abv";?

737


Can we have a method name same as class name in java?

577


What is an infinite loop?

542