Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Bad start: Errors in the interface.

 
Bri Johnson
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 147
IntelliJ IDE Java Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Bri Johnson
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 147
IntelliJ IDE Java Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 2271
3
Eclipse IDE Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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!!!
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic