Win a copy of Event Streams in Action this week in the Java in General forum!
  • 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Devaka Cooray
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Paul Clapham
  • Knute Snortum
  • Rob Spoor
Saloon Keepers:
  • Tim Moores
  • Ron McLeod
  • Piet Souris
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • Tim Holloway
  • Frits Walraven
  • Ganesh Patekar

Q about what is covered in SCJP 1.4?

 
Ranch Hand
Posts: 443
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Some of the test objectives mentioned in SCJP 1.4 seems to be very specific. So should I take them literally? For example:


SECTION 8: FUNDAMENTAL CLASSES IN THE JAVA.LANG PACKAGE
* Write code using the following methods of the java.lang.Math class: abs, ceil, floor, max, min, random, round, sin, cos, tan, sqrt.
:
:
* Describe the significance of wrapper classes, including making appropriate selections in the wrapper classes to suit specified behavior requirements, stating the result of executing a fragment of code that includes an instance of one of the wrapper classes, and writing code using the following methods of the wrapper classes (e.g., Integer, Double, etc.):
o doubleValue
o floatValue
o intValue
o longValue
o parseXxx
o getXxx
o toString
o toHexString


Does this mean that other methods in the Math class such as exp, pow, log will not be asked?
And for the wrapper classes, does it limit the questions only to those methods metioned above?


SECTION 9: THE COLLECTIONS FRAMEWORK


A few weeks ago, I asked if Vectors and HashTables is included, and somebody said yes. But now I realized that they are not considered as being part of the Collection Frameworks. So will there be questions about these 2 legacy collections?
Thanks.
[ July 09, 2003: Message edited by: Alton Hernandez ]
 
Ranch Hand
Posts: 160
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You won't be tested on those methods which are not included in the list. Well, that's at least what my book says.
I'm not sure about the Vector question though.
 
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I don't agree that Vector and HashTable can be named "legacy collections". In many situations, they are the best choices. At least in my code, ArrayList and HashMap cannot always replace them.
BTW, I did have Vector questions in my test.
 
Alton Hernandez
Ranch Hand
Posts: 443
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Originally posted by Bred Tom:
I don't agree that Vector and HashTable can be named "legacy collections". In many situations, they are the best choices. At least in my code, ArrayList and HashMap cannot always replace them.
BTW, I did have Vector questions in my test.


Well the reason I said that they do not belong to the Collection Framework is because most articles or books that I read implies that they do not. In fact, I borrowed the term legacy collection from the book "The Java Programming Language" by Arnold, Gosling, and Holmes.
An example of an article the seems to differentiate Vector and Hashtable from Collection is from this one.

An excerpt from that article is reproduced below:


Before Collections made its most welcome debut, the standard methods for grouping Java objects were via the array, the Vector, and the Hashtable. All three of these collections have different methods and syntax for accessing members:....


[ July 09, 2003: Message edited by: Alton Hernandez ]
 
author
Posts: 8995
19
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Alton -
Here's the scoop for 1.4...
The getXxx() method is NOT covered - Sun's mistake
but...
The valueOf() method IS on the exam, and it's BIG

exp, pow, log are NOT covered
Vector and Hashtable are IN the exam.
In regards to collections, you should understand the features and uses of the following:
Set, List, Map
HashSet, LinkedHashSet, TreeSet
LinkedList, Vector, ArrayList
Hashtable, LinkedHashMap, HashMap, TreeMap
Hope that helps!
-Bert
 
Alton Hernandez
Ranch Hand
Posts: 443
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Originally posted by Bert Bates:
Alton -
Here's the scoop for 1.4...


Thanks Bert
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!