Hi, I am new to java and was wondering if anyone could explain to me how java packages are mapped to the file system?
the package to file system mapping is reasonably straightforward.
Assume that the current directory is C:\Javadev
take the package name, and for each . replace with a \ this gives you the directory structure.
So if you compile the following class
When you compile it, it will create the Test.class file in
note that for linux/unix case is important.
a package uk.co.google would be compiled to a .class file in
Hope this helps
That's great. Thanks a lot!
-- Android Development Center
-- Cloud Development Project Center
-- HTML5 Development Center
-- Windows Mobile Development Center