Answer Posted / maharajan j
Static methods we can call without class reference.We don't
need to create an object of that particular class.
For example:
class A{
static void disp(){
sysout("Java")
}
}
class B{
B(){
A.disp();
}
}
| Is This Answer Correct ? | 13 Yes | 0 No |
Post New Answer View All Answers
What are the differences between graph and tree?
Which data type is a class in java?
Can you explain inner class.
Why is stringbuffer called mutable?
Why we use protected in java?
Is array size fixed in java?
What is difference between ++ I and I ++ in java?
Give me some null interfaces in java?
What does null mean in java?
What is a final class ?
What do you mean by composition in java?
What is user defined exception in Java?
What are keyboard events?
what are Hostile Applets?
What is meant by object oriented programming – oop?