Examveda

What is Optional object used for?

A. Optional is used for optional runtime argument

B. Optional is used for optional spring profile

C. Optional is used to represent null with absent value

D. Optional means it's not mandatory for method to return object

Answer: Option C


This Question Belongs to Java Program >> Java Autoboxing

Join The Discussion

Related Questions on Java Autoboxing

What is autoboxing in Java?

A. The automatic conversion of primitive types to their corresponding wrapper classes

B. The process of creating a new box

C. A feature for manually converting wrapper classes to primitive types

D. A feature for boxing objects