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
Define an applet in java?
Write an algorithm program in java for the following question.. 1) S is a set of integers.X is an integer obtained by sum of two digits in S. Write logic for whether or not the X is from the S. The time of algorithm should not exceed o(n logn).
What is difference between path and classpath?
Can we return null in java?
Why inputstreamreader is used in java?
How to perform bubble sort in java?
What is r in java?
What’s the difference between applets and standalone program?
What are the types of arrays in java?
Can an interface implement another interface?
When does a class need a virtual destructor?
What is jvm? Why is java called the platform independent programming language?
What is the symbol for line break?
Explain exception chaining in java?
What is mean by collections in java?