can we access the method of class without creating the
object of the class

Answers were Sorted based on User's Feedback



can we access the method of class without creating the object of the class..

Answer / javaguy

yes. we can access the static methods of that class without
creating the object that class

Is This Answer Correct ?    27 Yes 1 No

can we access the method of class without creating the object of the class..

Answer / 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

can we access the method of class without creating the object of the class..

Answer / mmrps

Not possible but abstract class methods can access with out
creating object.The normal class methods with out accessing
that class object.

Is This Answer Correct ?    2 Yes 7 No

Post New Answer

More Core Java Interview Questions

How to find the given number is a prime number or not by getting input from the user

0 Answers  


What is difference overloading and overriding?

0 Answers   Cyient,


Why declare Main() method as a static in java ?

0 Answers   HCL,


How is hashset defined in java?

0 Answers  


What is functional interface in java example?

0 Answers  






What are use cases?

0 Answers  


what is platform

2 Answers   i3 Solutions,


Why arraylist is used in java?

0 Answers  


How many types of memory areas are allocated by JVM in java?

0 Answers   UGC Corporation,


Which one of the following suits the description of a string better: derived or primitive?

0 Answers  


We have two methods to create methods the threads. 1. Implementing runnable interface 2. Extending to thread class and overriding run method. Among these two which one is better and why? Please explain me in detail.

2 Answers  


Are arrays passed by reference in java?

0 Answers  


Categories