Hi all,
I'm bit confuse with package declaration... As per what I have got is, suppose I am declaring a package in my source code as
package myPackage...
class myClass {
varaiables...
methods...
}
I've to save this source file in a folder with the same name as package.. e.g. c:\users\me\desktop\java\myPackage
I got up to this,
but the following code I found it in OCA: Oracle Certified Associate
Java SE 8 Programmer I Study Guide: Exam 1Z0-808 Chapter 1\review questions\Q-7
I didn't get package creation as package
aquarium.jellies... I don't know how this create subdirectory in package statement as
aquarium.jellies ??? There is nothing stats in the book's chapter even not in java tutorial I found something like
package com.oracle.java.oca ... but not the local directory like the one I wanted to know.
Can someone explain it to me how this works and if possible please show am an example.
Thanks,
S B Patel