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
What is module with example?
Is java a pure object oriented language?
What is the meaning of course?
What is the relationship between class and object?
Are static members inherited to sub classes?
What is the use of default method in interface in java?
How do you create immutable object in java?
When is the finally clause of a try-catch-finally statement executed?
What is difference between variable declaration and definition?
Can a serialized object be transferred via network?
What is a variable and constant?
Can we have multiple public classes in a java source file?
What are constants and how to create constants in java?
Distinguish between a predicate and a function?
Why do we use string?