File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes Does SCJP5.0 require understanding of checked/unchecked warnings? 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 "Does SCJP5.0 require understanding of checked/unchecked warnings?" Watch "Does SCJP5.0 require understanding of checked/unchecked warnings?" New topic
Author

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

reubin haz
Ranch Hand

Joined: May 12, 2005
Posts: 287
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 ]

SCJA, SCJP5.0, SCBCD, SCWCD
Steve Morrow
Ranch Hand

Joined: May 22, 2003
Posts: 657

Have a look at this:

Generics in the Java� Programming Language
reubin haz
Ranch Hand

Joined: May 12, 2005
Posts: 287
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

Joined: May 12, 2005
Posts: 287
I edited my posting title, and help someone could answer me. Thanks
Nicholas Cheung
Ranch Hand

Joined: Nov 07, 2003
Posts: 4982
You have to know why warnings appear and how to make those warnings go away.

Nick


SCJP 1.2, OCP 9i DBA, SCWCD 1.3, SCJP 1.4 (SAI), SCJD 1.4, SCWCD 1.4 (Beta), ICED (IBM 287, IBM 484, IBM 486), SCMAD 1.0 (Beta), SCBCD 1.3, ICSD (IBM 288), ICDBA (IBM 700, IBM 701), SCDJWS, ICSD (IBM 348), OCP 10g DBA (Beta), SCJP 5.0 (Beta), SCJA 1.0 (Beta), MCP(70-270), SCBCD 5.0 (Beta), SCJP 6.0, SCEA for JEE5 (in progress)
reubin haz
Ranch Hand

Joined: May 12, 2005
Posts: 287
Hi Nicholas, could you also talk about the difference between checked/unchecked warnings? Thank you
Barry Gaunt
Ranch Hand

Joined: Aug 03, 2002
Posts: 7729
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.


Ask a Meaningful Question and HowToAskQuestionsOnJavaRanch
Getting someone to think and try something out is much more useful than just telling them the answer.
reubin haz
Ranch Hand

Joined: May 12, 2005
Posts: 287
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

Joined: Feb 05, 2001
Posts: 17260
    
    6

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


Perfect World Programming, LLC - Two Laptop Bag - Tube Organizer
How to Ask Questions the Smart Way FAQ
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Does SCJP5.0 require understanding of checked/unchecked warnings?