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
How to solve the problem of generating the unique hash keys with hash function?
When is the garbage collection used in Java?
Can a set contain duplicates?
What is the purpose of the wait(), notify(), and notifyall() methods in java programming?
What is difference between array and arraylist in java?
Is null keyword in java?
How will you initialize an Applet?
How many bytes is 255 characters?
What is the role of garbage collector in java?
What does compareto () do in java?
What is used of static keyword in java?
What is default size of arraylist in java?
Is oracle charging for java?
Write a java program to check if a number is prime or not?
Can anonymous class have constructor?