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 difference between protected and private?
Why does the integer quotient -0/3 yield 0, but the double quotient -0.0/3.0 yields – 0.0?
How do we access static members in java?
What is bufferedwriter?
Is java call by value?
Can a class declared as private be accessed outside it’s package?
Explain restrictions on using enum?
What causes memory leaks in java?
What is the difference between JVM and JRE?
Explain the difference between collection api and stream api in java8?
What package is math in java?
What are parameters in a method?
Explain the difference between transient and volatile in java?
Tell us something about different types of casting?
What is a boolean field?