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 many types of voids are there?
What is the public method modifier?
What is the difference between replace and replace all?
Can we override constructors?
Explain the features of interfaces in java?
How we can run a jar file through command prompt in java?
What is boolean used for?
Tell me a few examples of final classes defined in Java API?
What is final keyword?
What is the file type?
What is the difference between static and non-static variables in java programming?
What does string mean in java?
What does arrays sort do in java?
What are the types of java languages?
Why is String immutable?