• 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

q on java.lang.Number package

 
Ranch Hand
Posts: 303
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
In danchisholm's exams, i find a no of questions, which asks abt methods of the above package.
please let me know if we r required to know all the methods of this package?
Eg:



In this eg, i didnt know byte doesnt have a charValue(),but overloads all the other methods from java.lang.Number.
 
Ranch Hand
Posts: 1272
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
From the Sun Certified Programmer for Java 2 Platform 1.4 exam objectives:


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 the immutability of String objects.
# 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



If you want a reason why class Byte has no charValue() method, consider that a byte can be negative while a char can not.
 
reply
    Bookmark Topic Watch Topic
  • New Topic