File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "que from voodooexam" Watch "que from voodooexam" New topic

que from voodooexam

sanjana narayanan
Ranch Hand

Joined: Nov 25, 2003
Posts: 142
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
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:
subject: que from voodooexam
It's not a secret anymore!