Why cant we define System.out.println() inside a class
directly?
Answer Posted / chandan
because a class is a logical structure and its definition is
group of entities but when we need some functionality we
need to define inside the function
| Is This Answer Correct ? | 1 Yes | 1 No |
Post New Answer View All Answers
Why do we need array in java?
Which access specifier can be used with class ?
Can subclass overriding method declare an exception if parent class method doesn't throw an exception?
What is a bufferedreader?
What is the use of jtable?
What is bytecode in java ?
What causes memory leak in java?
What is the importance of static variable?
What is passing by reference in java?
Can you create an object of an abstract class?
Can we have try block without catch block?
What is blank final variable?
What is the maximum size of hashmap in java?
Can we call the constructor of a class more than once for an object?
What is boolean logic?