What will be the output of the program?
What will be the output of the program
public class If1
{
static boolean b;
public static void main(String [] args)
{
short hand = 42;
if ( hand < 50 && !b ) /* Line 7 */
hand++;
if ( hand > 50 ); /* Line 9 */
else if ( hand > 40 )
{
hand += 7;
hand++;
}
else
--hand;
System.out.println(hand);
}
}
Statements: I. No U is L II. No L is k III.Some N are ZIV. Some Z are magic Conclusions: I. No U is Z II. All Z being L is a possibility
What is the output of this program?class Modulus {public static void main(String args[]) { double a = 25.64;int b = 25;a = a % 10;b = b % 10;System.out.println(a + " " + b);} }
Statement:Central Bank, which is the largest bank in the country, has decided to reduce its workforce by 30% so that its banks may work efficiently.
Assumptions:
I. The bank can perform all its activities after the reduction in workforce.
II. The surplus employees may be asked to adopt early retirement scheme before leaving the bank
What is the value of log3(1.5) +log3 (6)