
Introduction to OOP
Authored by Ilenius Ildephonce
English
University
Used 7+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
5 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
A primitive-type value is not an object, but it can be wrapped in an object using a wrapper class in the Java API.
True
False
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
You can construct a wrapper object either from a primitive data type value or from a string constructors representing the numeric value—for example, Double.valueOf(5.0), Double.valueOf(”5.0”), Integer.valueOf(5), and Integer.valueOf(”5”).
True
False
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Integer x5 = 32,is same as Integer x5 = Integer.valueOf(32).
True
False
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How do you convert an integer i into a string?
String.valueOf(i);
string(i)
String()(i)
String().i
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Converting a primitive value to a wrapper object is called boxing. The reverse conversion is called unboxing.
True
False
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?