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

Answers were Sorted based on User's Feedback



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

Answer / mohit gupta

System is a class and out is a static attribute which is of
type printstream. printstream class has a method called
println().

Is This Answer Correct ?    69 Yes 19 No

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

Answer / 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

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

Answer / muffy

System: System refers to current java program.

out: out refers to output device. by default it is monitor.

println: to print the specific string onto output device in
next line

System: its the class
out: its the object of the class System
println():its the method which tells the compiler to print
a new line.

Is This Answer Correct ?    128 Yes 91 No

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

Answer / mohanjayaseelan

system- is a class

out-is a field of type printstream

println-is a meathod in printstream class

Is This Answer Correct ?    38 Yes 15 No

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

Answer / rinal

system- system is predefined class to provide access to the
system
out - out is the output stream used to connect the
console
println- println is method which is tell the compiler to
write a new line in our console

Is This Answer Correct ?    30 Yes 18 No

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

Answer / amit j bhavsar

in java system is predefine class that provides access to
the system.

in java out means,out is the output stream that is
connected to the console.

in java println is a one method which is print the statment.

Is This Answer Correct ?    17 Yes 6 No

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

Answer / 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

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

Answer / alok

System is a class defined in java.lang package(public final
class System extends Object) that provides useful methods
and class fields(out,in,err)for input and output.

out is print stream object.it is static, so can be called
by its class name(System.out)

println() is a print stream method that is already
overloaded for each and every thing.it directs the output
to console

Is This Answer Correct ?    5 Yes 1 No

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

Answer / dheeraj singh rajput

System is a class made available by Java to let you
manipulate various operating system related objects. It's
part of java.lang namespace.

out, being one of those objects, is a static publicly
available object inside that class. The object itself,
representing standard output, is an instance of
java.io.PrintStream class. Standard output is, on most
operating systems, console output.

println is a method of java.io.PrintStream class that lets
you output some text into the stream and, as opposed to
print() method, gets you to the new line after the text.

Check out the source for more information.

[EDIT, answer to "Additional details"] You don't need to
import java.io.* because System is part of available to all
Java calls package java.lang (you don't need to import
that). Even though out is an instance of
java.io.PrintStream, it is still declared *inside* the
System class and therefore, you do not need to import java.io.

Of course, implementation of java.lang.System needs to
import java.io (and many other packages). You can see it in
the source:

Is This Answer Correct ?    2 Yes 1 No

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

Answer / sadikhasan palsaniya

System is a Predefined Class
Out is static field of System Class.
println is the method of PrintStream class which take
argument for print to it.

Am I Right?

Is This Answer Correct ?    2 Yes 1 No

Post New Answer

More Core Java Interview Questions

Which package is imported by default?

0 Answers  


how to write a server program and sending the mails to the server using smtp protocol please help me

0 Answers   Lampex,


What is mnemonic code?

0 Answers  


This is my code i have a doubt class ab implements a,b { public void add() { System.out.println("Hi") } } interface a { public void add(); } interface b { public void add(); } in this code i have two interface implemented in the class has same method.just i want to know which method of interface implemented in the class. interface a or interface b? confused me .

3 Answers  


How to transfer data from an Applet to Servlet ?

1 Answers  






How to display names of all components in a Container?

0 Answers   Microsoft, Wipro,


how to use crystal reports in java

2 Answers  


In real time project which driver did u use? What is the main functionality of the Prepared Statement?

3 Answers   Photon,


What is == and === in javascript?

0 Answers  


Why java Don't Support Multiple interitence

8 Answers   ABC, Exilant, IBM,


Why are the objects immutable in java?

0 Answers  


What is the difference between a switch statement and an if statement?

0 Answers  


Categories