• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Bad start: Errors in the interface.

 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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?
 
Ranch Hand
Posts: 147
IntelliJ IDE Java Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Bartender
Posts: 2292
3
Eclipse IDE Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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!!!
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic