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


Please Help Members By Posting Answers For Below Questions

What is yield () in java?

488


How to do encapsulation in java?

582


Can a final method be overloaded?

518


What does microservices mean?

544


Is hashmap thread safe?

567






What is the main use of java?

580


How to check if linked list contains loop in java?

467


Add a value x to array from index l to r where 0 <= l <= r <= n-1

641


How do you sort arrays in java?

532


What do you understand by access specifiers in Java?

597


What is java and their uses?

558


What is a static method in java?

553


What exactly is java?

521


What method is used to specify a container's layout in java programming?

552


What is the purpose of the enableevents() method in java programming?

598