What is the narrowest valid return type for method a in line 2
Answers
Answered by
1
Answer:
Type for method A in line2? *
1. public class ReturnIt {
2. return Type methodA (byte x, double y) {
3. return (long) x 7 y * 2;
4. }
5. }
short
O
Double
O
byte
O
int
Explanation:
HOPE IT HELPS YOU VERY MUCH ☺️☺️
Similar questions