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
11
Answer:
a. Chegg493
It will be the output.
Answered by
3
Answer:
ans is d chegg-19
it is the right answer
Similar questions
Math,
2 months ago
Social Sciences,
2 months ago
Science,
2 months ago
English,
5 months ago
Math,
11 months ago
Social Sciences,
11 months ago