Question
Assuming you have declared shoeSize to be a variable of type int, which of the following is a valid assignment statement in Java?a. shoeSize = 9;b. shoeSize = 9.5;c. shoeSize = "nine";d. shoeSize = 9.5F;
Step 1
It is declared as an `int`, which means it can only hold integer values (whole numbers). Show more…
Show all steps
Your feedback will help us improve your experience
Watch the video solution with this free unlock.
EMAIL
PASSWORD