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
Can I overload to string method
Explain OOPs concept.
What is the purpose of default constructor?
Is {a, n, d} a palindrome? If you are given a random string, is it a palindrome or not?
What is the Scope of Static Variable?
What is constructor and its types?
Explain when we should make an instance variable private.
What is quick sort in java?
What is import java util arraylist?
Can two objects have same hashcode?
Is 0 a real number?
what are the methods in object?
Differentiate between class and structure.
What is the difference between stringbuffer and stringbuilder?
Which java version is latest?