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 java autoboxing?

528


Which category the java thread do fall in?

563


What is extension method in java?

553


What an i/o filter?

556


Why pointers are not used in java?

570






Why string is not a wrapper class?

636


What is your platform’s default character encoding?

549


How many threads does a core java have?

503


Can an interface be defined inside a class?

512


Can we have more than one package statement in source file ?

580


Explain what pure virtual function is?

583


What do you mean by platform independence of Java?

527


What is initial size of arraylist in java?

528


How does thread synchronization occurs inside a monitor? What levels of synchronization can you apply?

529


What access modifiers can be used for class ?

529