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

What is java full form?

614


What is defined as false sharing in the context of multithreading?

616


Explain about core java?

726


How do you compare arrays in java?

590


What is queue in java?

647






Which is better stringbuilder or stringbuffer?

602


Can you start a thread twice in Java?

737


What is a null point?

643


Explain all java features with real time examples

1307


Write a program to reverse a number in java?

670


I want my class to be developed in such a way that no other class (even derived class) can create its objects. How can I do so?

618


What is immutability in java?

693


how would you implement a thread pool? : Java thread

584


What is the purpose of using java.lang.class class?

610


What is the unit of plancks constant?

661