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

In java, how we can disallow serialization of variables?

0 Answers  


Write a regular expression to validate a password. A password must start with an alphabet and followed by alphanumeric characters; its length must be in between 8 to 20.

0 Answers  


How do you reverse sort a list in java?

0 Answers  


what is the use of thread?Justify it by project point of view

7 Answers  


What are the access modifiers in java?

0 Answers  






What is run time allocation?

0 Answers   Fidelity,


What is a nested structure?

0 Answers  


What is difference between string and stringbuffer?

0 Answers  


What two classes are used to read data only?

0 Answers   TryTechnicals Pvt Ltd,


what is bytecode ?explain in detail and watz the difference between bytecode and machine code?

6 Answers   Lucent,


What is the default value of byte datatype in java?

0 Answers  


How to sort an array from smallest to largest java?

0 Answers  


Categories