Menu
Question Index
...

What is the widest valid returnType for methodA in LINE K?

public class ReturnIt {
    returnType methodA(byte x, double y) //LINE K
    {
        return (long)x / y * 2;
    }
}


int
byte
long
double

Doubts

Problems

Topic: Java Methods - Parameter Passing And Scope

Read this topic
Take test on this topic

0
Wrong
Score more than 2 points

© meritcampus 2019

All Rights Reserved.

Open In App