Win a copy of Java Mock Exams (software) this week in the Programmer Certification (OCPJP) forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Inconsistency in APIs

 
Devendra Joshi
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
getAttributeNamesInScope(int scope) API in JspContext class returns Enumeration<String>, where as the getAttributeNames() APIs in other classes (ServletRequest, ServletContext etc) returns Enumeration (not parameterized).

Are we expected to remember such differences/in-consistencies for SCWCD 1.5?
 
Marc Peabody
pie sneak
Sheriff
Posts: 4727
Mac Ruby VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You're looking at the wrong material. The exam uses the J2EE 1.4 specs and APIs. In 1.4 they all return a plain old Enumeration.
 
Arjan Times
Ranch Hand
Posts: 35
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Marc Peabody:
You're looking at the wrong material. The exam uses the J2EE 1.4 specs and APIs. In 1.4 they all return a plain old Enumeration.


As I mentioned before in other topics; this is exactly why it's so highly confusing that SCWCD 5 is about 1.4 and not about 5.
 
Happiness is not a goal ... it's a by-product of a life well lived - Eleanor Roosevelt. Tiny ad:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!