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
If A Class Is Declared Without Any Access Modifiers, Where May The Class Be Accessed?
Explain list interface?
What is difference between path and classpath in java?
What is private static class in java?
How thread scheduler schedule the task?
Why is stringbuffer called mutable?
how can you catch multiple exceptions in java?
What are the types of relation?
What is a method vs function?
What language is java written?
What is the difference between a scrollbar and a scrollpane?
What is finally and finalize in java?
What is linked hashset and its features?
What is stack example?
What is the use of java?