Ques 1 Operator
What is the output of the following Java Code?
public class divide{ public static void main(String[] args){ float ans1=5.3f; float ans2=2.3f; float res= ans1 %ans2; System.out.println(res); } }
Ques 2 Operator
What is the output of the following Java Code?
public class operator{ public static void main(String[]args){ boolean flag=false; if(flag = true){ System.out.println("Hello"); } if(flag = false){ System.out.println("World"); } } }