define System.out.println(); what is the meaning!
Answer Posted / 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 |
Post New Answer View All Answers
What happens when a thread cannot acquire a lock on an object in java programming?
Does the order of public and static declaration matter in main method?
When should I use stringbuffer?
What is string in java is it a data type?
What are the practical benefits, if any, of importing a specific class rather than an entire package (e.g. Import java.net.* Versus import java.net.socket)?
Explain how hashmap works?
What is the use of optional ?
What is abstract class? Explain
What is Java Annotations?
What is protected access modifier?
What is the maximum size of arraylist in java?
What do you mean by global variable?
What is substring in java?
Which package is always imported by default?
What are the 4 types of characters?