So the classpath should be java -cp .: Pack.InsideJar A
SCJP 6
SCJP 6
Why to worry about things in which we dont have control, Why to worry about things in which we have control ! !
SCJP 6
SCJP 6
Abhi vijay wrote:What if the code of A.java did not have the import statement???
SCJP 6
Abhi vijay wrote:That means A.java knows where B.class resides as it says import dirc.B, so the only the path leading to dirc needs to be specified in the classpath, Am I right, Punit???
SCJP 6
Abhi vijay wrote:No, Punit, I am not memorizing. I generally try out all the problems given in Mocks, in textpad. But didnt try out the above example, as I thought I should be able to answer it without trying it out. Stupid naa!!!
![]()
SCJP 6
Abhi vijay wrote:Ok.Punit. Will never repeat.
SCJP 6
Abhi vijay wrote:Punit, what i meant when i said I wont repeat is that I will always try out the program .
![]()
SCJP 6
Did you see how Paul cut 87% off of his electric heat bill with 82 watts of micro heaters? |