Follow Our FB Page << CircleMedia.in >> for Daily Laughter. We Post Funny, Viral, Comedy Videos, Memes, Vines...


how to call a method in different package?

Answers were Sorted based on User's Feedback



how to call a method in different package?..

Answer / sandhya.s

Import the package in to the class, where other package's
method is useful.

Is This Answer Correct ?    17 Yes 4 No

how to call a method in different package?..

Answer / 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

how to call a method in different package?..

Answer / 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

how to call a method in different package?..

Answer / 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



More Core Java Interview Questions

What are the types of literals?

0 Answers  


What are decalarations?

0 Answers  


What data structures are used to perform recursion?

0 Answers   Akamai Technologies,


Is java hard to learn?

0 Answers  


What is the purpose of skeleton and stub?

0 Answers  






What is java dot?

0 Answers  


What is the multilevel inheritance. and also give the Example of it ?

5 Answers  


Is oracle charging for java?

0 Answers  


why applet doesn't have main? isn't possible a program with out main?

9 Answers   TCS,


Explain the key functions of data binding?

0 Answers   Akamai Technologies, Aspire, Impetus, Infogain, Tavant Technologies, Virtusa,


What is the basic of java?

0 Answers  


Why Over riding is Run Time Polymorphism?

3 Answers   Genpact,






Categories