Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


explain System.out.println

Answers were Sorted based on User's Feedback



explain System.out.println..

Answer / siva

System is a final class.
Out is a object to the printstream.
println is the method.

Is This Answer Correct ?    0 Yes 0 No

explain System.out.println..

Answer / parth brahmbhatt

System is java class in java.lang package.
Out is static object of printstream class in java.io package.
println is the method of printstream class.

Is This Answer Correct ?    0 Yes 0 No

explain System.out.println..

Answer / jaith eranga

System : Is the namespace.(not the package)
out : A class in the System namespace.
println : A method in the out class

Is This Answer Correct ?    0 Yes 0 No

explain System.out.println..

Answer / deepak joshi

System is a class in java.lang package which imports java.io
package.....
out is a object(reference) of OutputStream class passed to
constructor of PrintStream class and println is a method in
PrintStream class.

Is This Answer Correct ?    0 Yes 0 No

explain System.out.println..

Answer / rahul yadav

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.
public static final PrintStream out
The "standard" output stream. This stream is already open
and ready to accept output data. Typically this stream
corresponds to display output or another output destination
specified by the host environment or user.

For simple stand-alone Java applications, a typical way to
write a line of output data is:
System.out.println(data)

Is This Answer Correct ?    0 Yes 0 No

explain System.out.println..

Answer / vineet ahlawat

System is a class of java.lang package.
Out is a reference object in print stream class of java .io
package.
ptintln is a method in printstream class.

Is This Answer Correct ?    0 Yes 0 No

explain System.out.println..

Answer / ishant agarwal

System is a final class where it define an class variable out of PrintStream class which is an static
and we can refer a class variable out with System class and println is a method define in PrintStream class

then

while loading an System class it creates an object of PrintStream class

that's why we write it in a way System.out.println();

Is This Answer Correct ?    0 Yes 0 No

explain System.out.println..

Answer / manoj

1. System: It is a class present in java.lang package.

2.out:It is a static field present in system class ,as it is
a static field thats why it can access with class name.which
returns a printstream object.

3.Println: It is method in PrintStrean class which is print
a line and also create a new line.

Is This Answer Correct ?    0 Yes 0 No

explain System.out.println..

Answer / gaurav

Here println() is a non static function belonging to object
'out', 'out' is the object of PrintStream class define as
static variable of class 'System'.

Is This Answer Correct ?    0 Yes 0 No

explain System.out.println..

Answer / himanshu

//a program to understand how System.out.println works

class Temp{//here "class Temp{"=>"class System{"
static Demo d;//here "static Demo d"=>"static PrintStream out"
static{
d=new Demo();//here "d=new Demo()"=>"out=new PrintStream()"
}
}


class Demo{//here "class Demo{"=>"class PrintStream{"
void show(){//here "show(){"=>"println(){"
System.out.println("Hello");
}
}


class Xyz{
public static void main(String a[]){
Temp.d.show();
}
}

/*-------------------
OUTPUT
---------------------
Hello


*/

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Core Java Interview Questions

What is anagram word?

0 Answers  


Can I declare class as static or private?

0 Answers  


Is array passed by reference in java?

0 Answers  


Hi Friends, I am beginner in java. what i know about synchonized keyword is,If more that one 1 thread tries to access a particular resource we can lock the method using synchronized keyword. Then after that how the lock is released and how next thread access that.Please explain with example.

5 Answers  


what is mean by overriding in which situation we wil use?

5 Answers   Atlas Systems, CSC, DCPL,


What is a protected void?

0 Answers  


I am a fresher and know core java, c languge, html, css etc if I am illegible for any job then send it on my email tatranakshay276@gmail.com

0 Answers  


Is null an object in java?

0 Answers  


How is treeset implemented in java?

0 Answers  


How will you calculate the depth of a binary tree if the tree contains 15 nodes?

0 Answers   Aricent,


Write down program for following scenario. Use java coding standard. You have array list with some words in it..we will call it as dictionary….and you have a arbitrary string containing some chars in it. You have to go through each word of dictionary and find out if that word can be constructed with the help of chars from arbitrary string given. If you find the word print it else print none.

0 Answers   Rolta,


Can we use both this () and super () in a constructor?

0 Answers  


Categories