Examlex
Assuming that a user enters 50, 70, and 60 as input values one after another, separated by spaces, what is the output of the following code snippet?
Int number1 = 0;
Int number2 = 0;
Int number3 = 0;
Scanner in = new Scanner(System.in) ;
System.out.print("Enter a number: ") ;
Number1 = in.nextInt() ;
System.out.print("Enter a number: ") ;
Number2 = in.nextInt() ;
System.out.print("Enter a number: ") ;
Number3 = in.nextInt() ;
If (number1 > number2)
{
If (number1 > number3)
{
System.out.println(number1) ;
}
Else
{
System.out.println(number3) ;
}
}
Else
{
If (number2 > number3)
{
System.out.println(number2) ;
}
Else
{
System.out.println(number3) ;
}
}
Q15: What is the output of the following
Q20: The Java library contains a _ class
Q21: Is the code snippet written below legal?
Q22: When drawing flowcharts, unconstrained branching and merging
Q34: One of the web application frameworks that
Q36: What is a storage location in the
Q42: In XML, a DTD is introduced with
Q45: Which one of the following is a
Q52: What does a method expression consist of?<br>A)
Q66: What will be printed by the statements