define System.out.println(); what is the meaning!

Answer Posted / dilip yadav

System- public final class System extends Object

The System class contains serveral useful class
fields and methods.it cannot be instantiated

out-

The out variable in the System class refers to (points
to) an instance of the PrintStream class (a PrintStream
object) which is automatically instantiated when the System
class is loaded into the application.

println()-the println() methods in class PrintStream.

System.out.prinln("HI DILIP ");

This statement invokes the println() method of an object of
the PrintStream class which is referred to (pointed to) by
the variable named out which is a class variable of the
System class.

Is This Answer Correct ?    14 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the difference between variable & constant?

543


What is the size of boolean variable?

575


Why is java called the platform independent programming language?

576


how we can create packages in java?

520


What is qualitative variable?

524






How does indexof work?

506


What does java stand for?

557


How does the garbage collector works in java?

574


What is module in project?

518


What is output buffer?

570


What does pointer mean?

546


what is singleton class in java?

623


Is special character in java?

616


What is the purpose of object oriented programming?

540


Explain about complier design(phases)

630