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 are the four corner stones of oop?
How many times finalize method will be invoked? Who invokes finalize() method in java?
When a thread is executing synchronized methods , then is it possible to execute other synchronized methods simultaneously by other threads?
Why you should not use singleton?
How many types of string data types are there?
What is listnode in java?
How many threads can java run?
Given a singly linked list, how will you print out its contents in the reverse order? Can you do it with consuming any extra space?
How big is a boolean?
Are arrays static in java?
What is an image buffer?
Can we compare two strings in java?
What are the differences between stringbuffer and stringbuilder?
How do I run java on windows?
What is array size in java?