Answer Posted / taresh nama
You Must import the package with fully Qualified name of
the class contains method.
Now you can call a method as:classname.method();
You can create a new object to that class and then call the
method as objectname.method();
| Is This Answer Correct ? | 3 Yes | 5 No |
Post New Answer View All Answers
What is flag in java?
What access modifiers can be used for methods?
Explain which of the following methods releases the lock when yield(), join(),sleep(),wait(),notify(), notifyall() methods are executed?
Can we instantiate interface in java?
What are constants?
Why do we need data serialization?
Can we extend immutable class?
What do you understand by casting in java language?
How to create com object in Java?
What is the difference between a loader and a compiler?
Are arrays dynamic in java?
Which collections are thread safe in java?
Explain the difference between extends thread vs implements runnable in java?
What does a method signature consist of?
What is JVM and is it platform independent?