The listing below shows a package named package1 containing a single class. Class Ademo.
Ademo.java
This source file should be named as class Ademo.Java and stored in the subdirectory package1. After compiling this file, a class Ademo.class file will created should be stored in the same subdirectory.
How to compile or make the package use under commands:
after compiling java create a folder named package1 under bin dir....
Now consider the other program as follows:
Test1.java
Output
Download Complete Program
Ademo | Test1 |
---|---|
Read more » |
No comments:
Post a Comment