how to call a method in different package?

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


Please Help Members By Posting Answers For Below Questions

What is java objectoutputstream?

755


What is immutability in java?

821


How do you create a sop?

737


Is java still necessary?

840


What are the types of methodology?

776


What does jre stand for?

811


If an object is garbage collected, can it become reachable again?

778


What is the difference between method and means?

801


Why parsing is done?

741


Why object class is super class for every class in java?

802


Is java written in c?

726


How many types of memory areas are allocated by jvm?

773


What are controls and their different types in awt?

840


Does the order of public and static declaration matter in main method?

843


Where are the card layouts used?

820