:: Home Page            
 Advertise your Business Here     
Browse  |   Placement Papers  |   Company  |   Code Snippets  |   Certifications  |   Visa Questions
Post Question  |   Post Answer  |   My Panel  |   Search  |   Articles  |   Topics  |   ERRORS new
   Refer this Site  Refer This Site to Your Friends  Site Map  Bookmark this Site  Set it as your HomePage  Contact Us     Login  |  Sign Up                      
Categories >> Software >> Java Related >> Java J2EE >> Core Java


 Core Java interview questions  Core Java Interview Questions (1720)
 Advanced Java interview questions  Advanced Java Interview Questions (331)
 Swing interview questions  Swing Interview Questions (43)
 EJB interview questions  EJB Interview Questions (134)
 Servlets interview questions  Servlets Interview Questions (255)
 Struts interview questions  Struts Interview Questions (195)
 JDBC interview questions  JDBC Interview Questions (187)
 JMS interview questions  JMS Interview Questions (9)
 SunOne interview questions  SunOne Interview Questions (3)
 J2EE interview questions  J2EE Interview Questions (71)
 Weblogic interview questions  Weblogic Interview Questions (145)
 Websphere interview questions  Websphere Interview Questions (14)
 Java Networking interview questions  Java Networking Interview Questions (20)
 Java J2EE AllOther interview questions  Java J2EE AllOther Interview Questions (87)
define  System.out.println(); what is the meaning!
 Question Submitted By :: Guest
I also faced this Question!!     Rank Answer Posted By  
  Re: define System.out.println(); what is the meaning!
# 1
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 ?    124 Yes 90 No
  Re: define System.out.println(); what is the meaning!
# 2
System is a class
out is a method of printstream.
println is method .
Is This Answer Correct ?    36 Yes 92 No
  Re: define System.out.println(); what is the meaning!
# 3
System is a class and out is a static attribute which is of
type printstream. printstream class has a method called
Is This Answer Correct ?    64 Yes 18 No
Mohit Gupta
  Re: define System.out.println(); what is the meaning!
# 4
system- system is predefined class to provide access to the
out - out is the output stream used to connect the
println- println is method which is tell the compiler to
write a new line in our console
Is This Answer Correct ?    27 Yes 18 No
  Re: define System.out.println(); what is the meaning!
# 5
system- is a class

out-is a field of type printstream

println-is a meathod in printstream class
Is This Answer Correct ?    37 Yes 14 No
  Re: define System.out.println(); what is the meaning!
# 6
System is class in java.lang package

out is a static member of type PrinStream class(
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 is the default package.
Is This Answer Correct ?    50 Yes 7 No
  Re: define System.out.println(); what is the meaning!
# 7
System.out.println( );

1.The System class contains several useful class fields and
methods. It cannot be instantiated.
2.System class has field out of type PrintStream class.
3.println() is a method in PrintStream class.
Is This Answer Correct ?    8 Yes 8 No
  Re: define System.out.println(); what is the meaning!
# 8
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 ?    13 Yes 6 No
Amit J Bhavsar
  Re: define System.out.println(); what is the meaning!
# 9
System is contain class like console
out is refer printstream
println is refer pt also its contain new line
Is This Answer Correct ?    5 Yes 5 No
  Re: define System.out.println(); what is the meaning!
# 10
System- public final class System extends Object

The System class contains serveral useful class
fields and cannot be instantiated


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 ?    13 Yes 3 No
Dilip Yadav

Other Core Java Interview Questions
  Question Asked @ Answers
Why are the methods of the Math class are static?   1
If I will write String s=new String("XYZ"); String s1=new String("XYZ"); if(s.equals(s1)){ sop("True"); } else{ sop("False"); } This program will give me "True". But When I am creating my own class suppose class Employee{ public Employee(String name); } Employee e= new Employee("XYZ"); Employee e1 = neew Employee("XYZ"); if(e.equals(e1)){ sop("True"); } else{ sop("False"); } Then it will give the output as "False". Can I know what is happening internally?   4
how can you retrive information from database by using hashmap/arraylist ,plz explain with example briefly? Satyam 1
how tha garbage collector know that the object will be deleted? on which algorithm the garbage collector works? what is the working principle of garbage collector? How manay types of garbage collectors r there? HP 1
In real time project which driver did u use? What is the main functionality of the Prepared Statement? Photon 3
How can you reverse a string?   8
In which JDK version event-delegation model is introduced?   1
Life Cycle of Thread IBM 4
What are the override methods in Object class? Tech-Mahindra 2
Interface A { String test(); } Interface B { int test(); } Create a class AB which must implements both A & B interfaces. Hewitt 17
how to java plateform independent? TCS 5
what is a transient variable?   5
For more Core Java Interview Questions Click Here 

Copyright Policy  |  Terms of Service  |  Articles  |  Site Map  |  RSS Site Map  |  Contact Us
Copyright 2013  All Rights Reserved.   ::