can we access the method of class without creating the
object of the class
Answers were Sorted based on User's Feedback
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 |
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 |
Can final class have constructor?
my method "abc" return array of interface "xyz" and "pqr" is abstract class implements abc and class "jkl" extends pqr My problem 1) when i call abc it retrun array xyz how can i do this hint xyz refer_xyz = new jkl(); but i can't create array. 2)I want to access method of jkl using reference of xyz??
Break statement can be used as labels in java?
What is the difference between conversation & casting?
State some situations where exceptions may arise in java?
What is cr keyboard?
How is the marker interface used in Java?
What is meant by tab pans?
What is run time polymorphism?
6 Answers eClerx, Elementus Technologies,
how to print a numbers from 1 to 100 with out using control structures?
What is the differences between c++ and java? Explain
What is singleton service?