Computer Science, asked by ranganadhammanichand, 4 months ago

What is the output of the following code?
class Main
{
public static int fun(int x)
{
byte y = (byte) x;
return y;
}
public static void main(String[] args)
{
System.out.println("Chegg" + fun(493));
3
a. Chegg493
b. Chegg19
c. Error
d. Chegg-19​

Answers

Answered by ajb7899
11

Answer:

a. Chegg493

It will be the output.

Answered by riteshmpatiloo
3

Answer:

ans is d chegg-19

it is the right answer

Similar questions