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
How do you remove an element from an arraylist in java?
What happens when a thrown exception is not handled?
Explain list interface?
What is the base class in java from which all classes are derived?
Can an object subclass another object?
What is derived datatype?
Can we override static methods in java?
What is meant by distributed application? Why are we using that in our application?
os is developed in c no java is more secured then c na why dont the os developed is developed using java
how to create multithreaded program? : Java thread
Why set is used in java?
Is there any limitation of using inheritance?
How many boolean functions are there?
What do you mean by synchronized non access modifier?
Define jre i.e. Java runtime environment?