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 is mysql driver class name?
What is the basic difference between string and stringbuffer object?
who can i handle multiple client in RMI
What is slash r?
What does n mean?
Explain all java features with real time examples
What is the final class modifier?
Difference between a process and a program?
how to one war file class to another war file class?
What is the role of the java.rmi.naming class?
Can we compare two strings in java?
What is wrapper class example?
What is exception hierarchy in java?
Why generics are used in java?
What is difference between throw and throws ?