Anonymous

How To Run Java Program Using Package?

3 Answers

Anonymous Profile
Anonymous answered
Dear vinod both program are written in different notepad windows and saved by their class name as package will be saved by the class name which is formed inside it and the program in which you are importing the package will be saved by that name where you have written tha main i.e public static void main() hope you got ans
Anonymous Profile
Anonymous answered
Please give me information about how to run a package programme .
Where should I code package program and main programme....
Anonymous Profile
Anonymous answered
Suppose you have created directory dir1 , under which you have placed your Java code.
At the time of compilation
c:\java\jdk 1.5.0_01\javac dir1/your_program.java
At the time of running the code
c:\java\jdk 1.5.0_01\java dir1/your_program
(This is under windows environment)

Answer Question

Anonymous