can we access the method of class without creating the
object of the class
Answer Posted / chanki
using static member(static)before d methode name,we can
directly call dat method widout creating object of dat
class..
for mat should be:
classname.methodname();
Is This Answer Correct ? | 3 Yes | 0 No |
Post New Answer View All Answers
What is yield () in java?
How to do encapsulation in java?
Can a final method be overloaded?
What does microservices mean?
Is hashmap thread safe?
What is the main use of java?
How to check if linked list contains loop in java?
Add a value x to array from index l to r where 0 <= l <= r <= n-1
How do you sort arrays in java?
What do you understand by access specifiers in Java?
What is java and their uses?
What is a static method in java?
What exactly is java?
What method is used to specify a container's layout in java programming?
What is the purpose of the enableevents() method in java programming?