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
Is an object null?
What is string literal in java?
Why deletion in linkedlist is fast than arraylist?
What is the major drawback of internal iteration over external iteration?
What is a method header?
What are data types in programming?
What is %02d?
Is intellij better than eclipse?
What is intern method in java?
What is difference between iterator and enumeration in java?
Can you inherit a constructor java?
Can a main method be declared final?
What is local class in java?
What is variable declaration and definition?
How is tree Mirroring implemented?