Asked by TANIE ETIENNE on Jul 20, 2024
Verified
You can use any primitive type as the base type of an ArrayList class.
Primitive Type
Basic data types provided by a programming language as building blocks, such as int, char, or float, that are not objects.
Base Type
The data type from which a derived type inherits in programming, forming a hierarchy of types.
- Learn about the concept and utilization of generics in Java software development.
Verified Answer
LI
Laura ImlerJul 24, 2024
Final Answer :
False
Explanation :
ArrayList in Java can only hold objects, and primitive types (like int, float, char) need to be used in their wrapper class form (like Integer, Float, Character) to be stored in an ArrayList.
Learning Objectives
- Learn about the concept and utilization of generics in Java software development.