they asked class A{}
class B{}
class c{}
all the three class saved as a single file,there is no main
method in the file
and anothe class
M.java
class m
{
psvm(String args[])
{
// here the parent class can access
}
}
Answers were Sorted based on User's Feedback
Answer / suresh
Yes. You can call parent classes ( i.e A or B or C) inside
of class M by instantiate and invoke methods. If parent
classes have static methods you can directly access without
instantiating.
| Is This Answer Correct ? | 1 Yes | 0 No |
List primitive java types?
as we know a static method could access static data and static method only. then how could main method call the object of aclass which is not static and other non static data
write a program to create an vector and listeterator.and value should be enter through keyboard.
State the merge-sort principle and its time complexity.
0 Answers Akamai Technologies,
What is the purpose of interface?
What are design patterns and please explain?
What is the base class in java from which all classes are derived?
Define "Access specifiers" in java.
What is int short for?
What is keyword in oop?
Can you call a private data from an inner class?
What is an off by one error in java?