how to call a method in different package?

Answer Posted / sandhya.s

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

Is This Answer Correct ?    18 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Why method overriding is used?

537


What are the various access specifiers for java classes?

543


What do you mean by byte code?

507


What is type inference in java8?

576


what do you understand by synchronization? : Java thread

547






What is the difference between synchronized and synchronized block?

501


Is array synchronized in java?

551


How many threads can I run java?

538


What is java volatile?

543


What are the differences between path and classpath variables?

489


How hashmap increases its size in java?

488


What is a protected class in java?

538


What is a lightweight component?

594


how do I create a runnable with inheritance? : Java thread

505


how we can use debug in myeclipse 6.0 in order solve the problems that exist in our program when there are 900 to 1000 pages in a web application

1665