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?

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 are keywords give examples?

209


What is widening and narrowing in java? Discuss with an example.

261


Why scanner is used in java?

195


Is there a way to increase the size of an array after its declaration?

225


What is nested interface?

187






Are variables stored in ram?

209


What is constructor and its types?

194


What is an iterator interface in java programming?

225


What are the advantages of assembly language?

166


Describe the Big-O Notation.

269


What is meant by stack and queue?

253


What is the generic function?

187


Explain java code for recursive solution's base case?

225


How do you sort a string in alphabetical order in java?

201


How do you use find and replace?

185