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

System :
Its a built-in class present in java.lang package.
This class has a final modifier, which means that, it cannot
be inherited by other classes.
It contains pre-defined methods and fields, which provides
facilities like standard input, output, etc.

out :
Its a static final field (ie, variable)in System class
which is of the type PrintStream (a built-in class, contains
methods to print the different data values).
static fields and methods must be accessed by using the
class name, so ( System.out ).

out here denotes the reference variable of the type
PrintStream class.

println() is a public method in PrintStream class to print
the data values.
Hence to access a method in PrintStream class, we use
out.println() (as non static methods and fields can only be
accessed by using the refrence varialble)

System.out.println();

Is This Answer Correct ?    0 Yes 0 No

explain System.out.println..

Answer / chandan

system is a class
out ia an object of printwriter class
println is a method of printwriter class

Is This Answer Correct ?    0 Yes 0 No

explain System.out.println..

Answer / pragya

System:It is a class in lang package and
out:it is static member of System class and object of PrintStream class........
println():this is the method defined in PrintStream class
which prints the sentence in new line

Is This Answer Correct ?    0 Yes 0 No

explain System.out.println..

Answer / mayur gajera

'System' is a class in java.lang package
'out' is a static object of PrintStream class in java.io
package
'prinln()' is method in the PrintStream class

Is This Answer Correct ?    0 Yes 0 No

explain System.out.println..

Answer / praveen

System is a final class in java.lang package
out is a public static final refrence of PrintStram
in System
print() and println()are the methods in PrintStream

Is This Answer Correct ?    0 Yes 0 No

explain System.out.println..

Answer / raju kumar (bca)

ex:-class System
{
static printstream out= new printstream();
static Inputstream in= new Inputstream();
}
conclusion:=>
"system" is a class&packege(java.lang).
"out" is a static object of printstream class (java.io).
and "println()"is a method of out calss.

Is This Answer Correct ?    0 Yes 0 No

explain System.out.println..

Answer / vivek ingle

System is a class in System class their is a declaration of
out Static data member Just Like (public static final
PrintStream out).

Out is Static Data Member.

Println is a method in PrintStaream class.

Public Class System{
public static final PrintStream out;
}

Is This Answer Correct ?    0 Yes 0 No

explain System.out.println..

Answer / swati vora

system is a class.
out is a object.
println() is a method

Is This Answer Correct ?    0 Yes 0 No

explain System.out.println..

Answer / rajendra chandra

System:-it is class present in the java.lang package
out:-it is the static variable of PrintStream class defined inside system class
println():- is a method of PrintStream Classand this class having some method which are declared pubic void type

Is This Answer Correct ?    0 Yes 0 No

explain System.out.println..

Answer / k.venu

System is a built-in class present in java.lang package.
This class has a final modifier, which means that it cannot
be inherited by other classes.
It contains pre-defined methods and fields, which provides
facilities like standard input, output, etc.

out is a static final field (ie, variable)in System class
which is of the type PrintStream (a built-in class,
contains methods to print the different data values).
static fields and methods must be accessed by using the
class name, so ( System.out ).

out here denotes the reference variable of the type
PrintStream class.

println() is a public method in PrintStream class to print
the data values.
Hence to access a method in PrintStream class, we use
out.println() (as non static methods and fields can only be
accessed by using the refrence varialble)

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Core Java Interview Questions

Accenture NJ mostly ask question on Collection like 1)How to sort Objcts and how treeset sort them 2)Explain mechanism of Hashcode finding in Java 3)Name some of the Sorted collection.

2 Answers   Accenture,


What is a constructor, constructor overloading in java?

0 Answers  


v-model life cycle

0 Answers   Virtusa,


Program to Find the second largest element in an array.

0 Answers   Amazon,


What is a final class in java?

0 Answers  


What is the advantage of OOP in java?

0 Answers  


In the first round, there are 30 aptitude and 30 java questions. We are suppose to finish both the papers within 60 minutes. I cleared this round. Next was test for programming skills. In this section, Some 7 n's were asked. 1. What is the difference b/w sleep(1000) and wait(1000) 2. what is the diff b/w static block and static function? 3. Write a program to validate IP address using string tokenizer. 4. Write a program to create singleton class 5. write a function to reverse the string 6. Write a prog to print prime nos upto n. EX: If n=9, It shld print 1,2,3,5,7 7. One program on collections- Write a program to print no. of times a number is repeating in an array. EX- {1,3,1,2,5,7,3,7,34,3,8,3} It should print: 1- 2 times 3- 4 times and so on 7. Write a func to print fibonocci series After this I had technical interview, which went on for. 60 mins or so. There were qn's about multi threading, Exception handling and collection classes. Knowledge about collections was very important for the post I was interviewed for.

1 Answers   Huawei,


What do you understand by classes in java?

0 Answers  


What is the escape character in java?

0 Answers  


What is a nullable field?

0 Answers  


what is synchronization? : Java thread

0 Answers  


What do negative exponents mean?

0 Answers  


Categories