Flashcards
Wrapper
Cards in this deck (5)
- 1How to convert primitive value to wrapper object?valueOf()
z.B.
Integer num1 = Integer.valueOf(billNo); - 2How to convert wrapper object to primitive valueintValue()
int billNo = num1.intvalue();
doubleValue() - 3How is it called the conversion from primitive data type to objectautoboxing
- 4How is it called if one wrapper object is unwrapped into a primitve value?unboxing
- 5How to convert String to primitive?parseInt()
String num = "2345"
int billNo = Integer.parseInt(num);
oder:
Double.parseDouble(num)
Information
- Description
- Flashcards on Wrapper, created by BLU BLU on 31/01/2025.
- Created by
- BLU BLU
- Views
- 0
- Rating