how to call a method in different package?

Answer Posted / venkatachalapathy

import fully Qualified name of the package in which the
method is present
use the method as "classname.methodname"
or
create the object of that package using a fullyqualifed
name of that package and use the method
as "object.methodname

Is This Answer Correct ?    12 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is get () in java?

580


What are predicates in java 8?

545


What is the purpose of static keyword in java?

525


What are the types of web technologies?

545


what is the final keyword denotes in java?

594






Can we call the run() method instead of start()?

606


What are the methods of object class ?

573


What is :: operator in java 8?

568


What's a method in programming?

555


How to check if a list is sorted in java?

594


What does this () mean in java?

554


What is ternary operator? Give an example.

613


Can we convert stringbuffer to string?

570


Which collection does not allow duplicates in java?

488


Can we restart a dead thread in java?

562