explain System.out.println

Answer Posted / birendra

system-is a class present in java.lang package .it is a
public final class.
system class import the package java.io.*;

out-out is the object of printStream class.
its syntax is public final static PrintSteam out in the
system class.

println()-it the the method of PrintStream class;

so we can call the static object of system class with the
name of class & with the name of out we can call the method
of printsteam call
System.out.println();

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the use of math abs in java?

542


Tell me how many ways are there to initialise an integer with a constant.

636


how does the run() method in runnable work? : Java thread

511


What is a nested structure?

527


What is the base class for error and exception?

547






Explain the use of sublass in a java program?

594


What is function and method in java?

516


Which collection does not allow duplicates in java?

462


Are registers volatile?

525


how to run ecllipse with jettyserver for windows environment using batch file

1486


What will happen when using pass by reference in java?

514


What are new features introduced with java 8 ?

548


Which types of exceptions are caught at compile time?

560


Describe the term diamond problem.

573


Explain the importance of finally block in java?

565