Why cant we define System.out.println() inside a class
directly?
Answer Posted / venkatachalapathy
we Directly write this line i.e System.out.println()
directly inside a class because println method is static
method in output stream class which are sub classes of
system class.
so every time this method is overridden in our program....
so static methods doesnt require a creation of object.....
| Is This Answer Correct ? | 3 Yes | 3 No |
Post New Answer View All Answers
How do you reverse a string in java?
What is parse method?
there are N number of matchboxes numbered 1...N.each matchbox contain various number of stick.Two player can alternatevely pick some amount of stick from the higest stick containing box . The player is condidered win if there is no stick after his move.Find the final move so that the move player win. Note:In case the number of stick is equal ,pick the stick from the higest numbered box.
What are wrapper classes in java?
Is static a keyword in java?
Does list maintain insertion order java?
Do we have pointers in java?
How does callback work in java?
Define class?
Explain working of call by reference function invoking.
How does arraylist work in java?
What is space character in java?
What is java oops?
Why we use methods in java?
What is the private method modifier?