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

Answer Posted / p.nandakishore

System is class in java.lang package

out is a static member of type PrinStream class(java.io)
declared in the System class.static members of a class can
be accessed directly by classname that's why System.out.

println is a method in PrintStream class.out is of type
PrintStream that's why you access println w.r.t out.

why this big statement? because here no need to import any
package, like you include a header file in c or
c++.java.lang is the default package.

Is This Answer Correct ?    55 Yes 8 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Can we have try block without catch block?

586


Explain about collection interface in java?

549


How we can generate random numbers in java?

610


when to use ArrayList and when to use HashMap in webApplication.

3887


What is a method type?

537






Why can we not override static method?

591


What environment variables are required to be set on a machine in order to run Java programs?

618


What is an example of a boolean?

571


Is int primitive data type?

507


How to create a custom exception?

574


What is the difference between applet and application?

545


What is scanner in java?

543


How to make a write-only class in java?

579


what is collatration?

2743


How do you escape sequences in java?

594