• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Does SCJP5.0 require understanding of checked/unchecked warnings?

 
reubin haz
Ranch Hand
Posts: 287
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I saw 'checked/unchecked warning' on some JDK5.0 tutorial, but I'm not sure what they mean actually? Can someone tell me what is the difference between them? Is it like 'checked/unchecked' in Exception? Will this be covered in SCJP 5.0?

Thanks.
[ July 13, 2005: Message edited by: reubin nibuer ]
 
Steve Morrow
Ranch Hand
Posts: 657
Clojure Spring VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Have a look at this:

Generics in the Java� Programming Language
 
reubin haz
Ranch Hand
Posts: 287
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have read that article. But it does not say much about the difference between checked and unchecked warning, and don't say if warning related questions would be involvoed in the exam. Please help.
[ July 13, 2005: Message edited by: reubin nibuer ]
 
reubin haz
Ranch Hand
Posts: 287
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I edited my posting title, and help someone could answer me. Thanks
 
Nicholas Cheung
Ranch Hand
Posts: 4982
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You have to know why warnings appear and how to make those warnings go away.

Nick
 
reubin haz
Ranch Hand
Posts: 287
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Nicholas, could you also talk about the difference between checked/unchecked warnings? Thank you
 
Barry Gaunt
Ranch Hand
Posts: 7729
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have never heard of checked warnings. Unchecked warnings are mentioned 13 times in the above referenced document. I can also suggest you read this article.
 
reubin haz
Ranch Hand
Posts: 287
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I saw there is unchecked warning, so I instantly think there is a checked one as well, just like Exception class, but I'm wrong. Thanks for providing the link, Barry
 
Mark Spritzler
ranger
Sheriff
Posts: 17278
6
IntelliJ IDE Mac Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Actually you will need to know the difference between checked and unchecked exceptions.

What that means is that any class that extends RuntimeException or Error are unchecked Exceptions, which means the compiler does not require you to either catch or declare throwing that exception.

If the Exception is a subclass of Exception, but not RuntimeException then they are checked exceptions. Which means you either have to catch the Exception or declare that the method throws the Exception.

Mark
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic