The Basics Flashcards

1
Q

What are the eight primitive types

A

boolean, byte, char, short, int, long, float, and double

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What is autoboxing

A

“autoboxing” refers to the automatic conversion from a primitive type to an Object using the primitive’s wrapper class.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

When are Wrapper classes particularly important

A

Wrapper classes are particularly useful for using primitive types as type parameters in generic classes.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

When is a method considered overloaded?

A

A method is overloaded if there are multiple versions with the same name but different parameters.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly