Link to home
Start Free TrialLog in
Avatar of gudii9
gudii9Flag for United States of America

asked on

wrapper class

>>Which of the following statements are true?

1) The Integer class has a String and an int constructor
2) The Integer has a floatValue() method
3) The wrapper classes are contained in the java.lang.Math package
4) The Double class has constructors for type double and float


Answer to Question 1

1) The Integer class has a String and an int constructor
2) The Integer has a floatValue() method
4) The Double class has constructors for type double and float

i was going through above question from following link

http://www.jchq.net/certkey/0803certkey.htm

It is not clear to me.

Can Integer class can take String argument.

Any ideas, resources, links, sample code highly appreciated. thanks in advance.
Tags:
ASKER CERTIFIED SOLUTION
Avatar of for_yan
for_yan
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Avatar of Mick Barry
Mick Barry
Flag of Australia image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial