Why cant we define System.out.println() inside a class
directly?

Answer Posted / madhu

We can't because The method signature matters when you are
declaring the method. we can't give a name with
System.out.println, but we can define println()

Is This Answer Correct ?    4 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Is main is a keyword?

572


What is ++ a in java?

564


Can we force the garbage collection to run?

530


why Java does not support multiple inheritances?

698


Give us a program to check for parenthesis matching using stack.

550






Is array size fixed in java?

531


How does java enable high performance?

686


Is empty in java?

576


What is the size of arraylist in java?

602


What does null mean in java?

622


What is array length?

499


What is the maximum size of arraylist in java?

486


Why wait and notify methods are declared in object class?

599


What is use of arraylist in java?

579


What is finalize method?

571