Question: Some recent Object-oriented languages such as Java and C#, contain both int and Integer data types. Which one of the following statements is correct about

Some recent Object-oriented languages such as Java and C#, contain both "int" and "Integer" data types. Which one of the following statements is correct about this subject?

Your answer:

Integer is a primitive type.

Both types are the same and require the same amount out storage.

int is the wrapper type for Integer. It wraps the primitive into an object.

Integer is an object type and is passed by reference to subprograms.

None of the above.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!