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
Is there any way to skip finally block of exception even if some exception occurs in the exception block?
What does substring mean?
Which variables are stored in heap?
What is a static class in java?
Name few java.lang classes introduced with java 8 ?
Why are parameters used in functions?
Can we overload final method in java?
Is a string literal?
What is the base class of all classes?
What is a java developer salary?
I want to print “hello” even before main is executed. How will you acheive that?
Explain the use of sublass in a java program?
Why Java doesn’t support multiple inheritance?
What is the size of string?
What is a java predicate?