Can we extending more than one classes
Which keyword must be used to handle exceptions?
Which class in Java provides various types of rounding functions?
SetProperties method changes the set of Java Properties which are not persistent
The method which remove the spaces before and after the string is
String str = “H e l l o W o r l d”;
System.out.print(str.length());
What is the output of the above code?
public class operators {
public static void main(String[] args)
{
int a = 20, b = 10, c = 0, d = 20, e = 40, f = 30;
System.out.println((a + b / d));
}
}
Select the correct option for a valid declaration of a float variable from the following code segment in Java.
class GFG {
public static void main (String[] args) {
boolean a=true;
boolean b=!a;
boolean c=!a^b;
boolean d=!(c^!!b);
System.out.println(c+" "+d);
}
}
Which of the following is an incorrect statement regarding the use of generics and parameterized types in Java?