explain System.out.println

Answer Posted / santosh singh

'System'is a class in it out is a field defined as static
so we can write System.out
out is object defined in PrintStream class in printstream
class tere is a method println()so we can call that method
by out.println()printstream class is defind in java.io
package so if we want to use it so we import java.io package
so it is better to cal system.out.println()it give the same
result

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Write a program to reverse array in place?

596


What does the @override annotation do?

565


How many types of parsers are there?

559


Give some features of interface?

588


Why are the objects immutable in java?

550






what is singleton class in java?

623


What is use of super keyword in java?

604


What is final variable?

503


What is the arraylist in java?

536


Can an anonymous class be declared as implementing an interface and extending a class in java programming?

651


What is the set interface in java programming?

632


What is private static class in java?

521


What is "this" keyword in java? Explain

666


What is internal variable?

542


Can we extend immutable class?

538