Answer Posted / kiranksj
import package in the class.That package related methods are now accessible in a class.If u want call a method
classname.method(); or create a new object to a class and then call the method like objectname.method();
| Is This Answer Correct ? | 2 Yes | 0 No |
Post New Answer View All Answers
What is java in layman terms?
Can we change the scope of the overridden method in the subclass?
What are the principle concepts of oops?
Is class forname reflection?
What is functional interface in java example?
What is the difference between a vector & an array list?
Can we use different return types for methods when overridden?
Explain about the dynamic behavior of core java?
What is the use of :: in java?
What are pass by reference and pass by value?
Can a static method be overridden in java?
Is a class subclass of itself?
What is the difference between equals() and?
Which collection does not allow duplicates in java?
How do you invoke a method?