Question: I need help with this homework problem. In the second line of code below, why isn't there a new keyword? = new ArrayList(); ArrayList myNums

 I need help with this homework problem. In the second line
of code below, why isn't there a "new" keyword? = new ArrayList();

I need help with this homework problem. In the second line of code below, why isn't there a "new" keyword? = new ArrayList(); ArrayList myNums Integer myInt = 3; myNums.add(my Int); Because 3 is already an Integer O Because Integer is a wrapper class O Because mylnt is being added to an Integer ArrayList This won't compile Because 3 is a primitive and not an object

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!