Meaningless Drivel is fun!*
The moose likes Developer Certification (SCJD/OCMJD) and the fly likes Bad start:  Errors in the interface. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Certification » Developer Certification (SCJD/OCMJD)
Bookmark "Bad start:  Errors in the interface." Watch "Bad start:  Errors in the interface." New topic
Author

Bad start: Errors in the interface.

Bri Johnson
Greenhorn

Joined: Nov 10, 2009
Posts: 2
Hi.

1st post, thanks for the warm welcome.
(I'm so presumptuous )


First up, I'm doing an internal preparation exam at my school, not the real thing. My interface looks like this...



which I have put into NetBeans IDE and it shows errors on RecordNotFoundException & DuplicateKeyException with solutions suggested to create a class for each. Is there no import statement that will cover these exceptions? Do I have to create classes for these? Is there something wrong with my IDE? Previously I've used Eclipse I'm new to Netbeans.



Also (off topic) I saw an advert for free open-source IntelliJ IDEA at the bottom of the page when I signed up, anyone use it?
Yucca Nel
Ranch Hand

Joined: Nov 20, 2008
Posts: 147

Err I think this may be too advance for you given that you seem to think that these classes are expected to be part of the java API? Clearlt netbeans is informing you that these exceptions are not part of the jdk and provides you with an option to create these classes. If you do not understand this logic then SCJD forum may not be for you and you should head over to the beginning java section.


SCJP 6.0, SCJD (400/400), SCBCD for JEE 5, SCWCD 1.4 I do videos for development at
http://www.youtube.com/user/thejartender?feature=mhee
I am probably the only developer ever to have had an orange sized brain tumor in my brain while learning development!!
Bri Johnson
Greenhorn

Joined: Nov 10, 2009
Posts: 2
Yucca Nel wrote: Clearly netbeans is informing you that these exceptions are not part of the jdk and provides you with an option to create these classes. If you do not understand this logic then SCJD forum may not be for you and you should head over to the beginning java section.


Yes, I'm not knowledgeable on this. I've never had to write my own classes to handle exceptions, could you point me in the right direction?
Yucca Nel
Ranch Hand

Joined: Nov 20, 2008
Posts: 147

Bri Johnson wrote:
Yucca Nel wrote: Clearly netbeans is informing you that these exceptions are not part of the jdk and provides you with an option to create these classes. If you do not understand this logic then SCJD forum may not be for you and you should head over to the beginning java section.


Yes, I'm not knowledgeable on this. I've never had to write my own classes to handle exceptions, could you point me in the right direction?


Before I try that I suggest you make sure you understand what classpath is what it means when netbeans is suggesting you create these exceptions? If you do not understand how exceptions are created then you need to start at beginning Java and the Java tutorials that sun has for free on their website. It sounds to me like you are new to java and not experienced enough to do a development of a project that SCJD is aimed at. You do neet tneed to learn all the information but just the core language to begin with as well as things like classpath.
Roberto Perillo
Bartender

Joined: Dec 28, 2007
Posts: 2258
    
    3

Howdy, Bri. Welcome to JavaRanch!

Do I have to create classes for these?


Yes. Please take a look at your instructions.html file. It says that every exception must be created with 2 constructors and must be created in the suncertify.db package, but please take a look at your instructions.html file to confirm that.

Another thing is, when we take a certification, we agree not to publish real questions (please take a look here for more details). Even though it is not a question, you posted a part of the assignment that was submitted to you, so I'd kindly like to ask you to avoid that, so we can keep everything ok here.

Another thing, whenever you have a question, please come here and ask it, no matter what it is. We'll always make our best to help you!!!


Cheers, Bob "John Lennon" Perillo
SCJP, SCWCD, SCJD, SCBCD - Daileon: A Tool for Enabling Domain Annotations
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Bad start: Errors in the interface.
 
Similar Threads
[B&S] lock/update/read method
IOException in db find method
URLyBird interface?
No definition of what is a DuplicateKeyException
NX (Bodgitt and Scarper, LLC): recNo primitive long on DBAccess Interface methods