Meaningless Drivel is fun!*
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes que from voodooexam Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "que from voodooexam" Watch "que from voodooexam" New topic
Author

que from voodooexam

sanjana narayanan
Ranch Hand

Joined: Nov 25, 2003
Posts: 142
Hi,
Question :
Given the following class
package org . myPack ;
public class Ques01 {
// some code
};
Which of the following are valid ways of refereing to the class from any other package besides org . myPack ?
Options :
a . Refer to the class as Ques01
b . Refer to the class as org . myPack . Ques01
c . Refer to the class as myPack . Ques01
d . import org . myPack . * & then refer to the class as Ques01
e . import org . * & then refer to the class as Ques01
My ans was b and d. The given ans are b,c. any explanations would be appreciated
-Sanajana
Yi Meng
Ranch Hand

Joined: May 07, 2003
Posts: 270
b d are the answers, you know why, right?
just be confident yourself, others people also make mistakes....
[ January 16, 2004: Message edited by: Yi Meng ]

Meng Yi
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: que from voodooexam