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 a java predicate?
Describe the process as to how substring() methodology mechanisms in java.
Does constructor creates the object ?
What is a parameter in simple terms?
Discuss different types of errors that generally occur while programming.
What is a jagged array in java?
In the below example, how many string objects are created?
Is there any difference between synchronized methods and synchronized statements?
What are the different http methods?
How to store image in arraylist in java?
What is double checked locking in singleton?
What are the main features of java?
How to make a read-only class in java?
What do you mean by hashing?
How do I get 64 bit java?