JAVA REGION

Module 1

1. What will be the answer..?

>>>>>>
package pckg1;

public class Test5 {
public static void main(String[] args) {
float f1 = 3.2f;
float f2 = 3.5f;
if (f1 == 3.2){
System.out.println("f1 is True");
}else{
System.out.println("f1 is False");
}
if (f2 == 3.5){
System.out.println("f2 is True");
}else{
System.out.println("f2 is False");
}
}
}
>>>>>>

Ans:
 f1 is False
f2 is True

2.What will be the Output...?

>>>>>>
package pckg1;

public class Test6 {

public static void main(String[] args) {
for (;;) {
System.out.println("siddu");

}

}

}


3.


Post a Comment