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 display all the prime numbers between 1 and n (n is the number, get the input from user)
How big is a pointer?
How do you use spaces in java?
How the interruptible method gets implemented?
Explain the selection sort algorithm?
What is array pointers ?
Why can't we override private static methods?
What is the loop in java?
Can I extend singleton class in java?
Does .length start 0 java?
What is the difference between class forname and new?
What are the 8 data types in java?
Which container method is used to cause a container to be laid out and redisplayed in java programming?
What does void * mean?
What is anagram in java?