Treemap order not matter
\w matches nonword character using regular expression in java
How many objects will be eligible for garbage collection in the given code?
Predict the output of the following Java code.
Which of the following concepts make extensive use of arrays?
Statement 1 - java is Robust.
Statement 2 - java is Distributed.
class GFG {
public static void main (String[] args) {
byte x = (byte)128;
int i;
byte y;
i = x>>2;
y = (byte) (x <<2);
System.out.print(~i + " " +y);
}
}
class GFG {
public static void main (String[] args) {
byte x = (byte)128;
int i;
byte y;
i = x>>2;
y = (byte) (x <<2);
System.out.print(i + " " +y);
}
}
Suppose you wrote a Java program to calculate the factorial of a number using recursion. The class containing the main method is named 'xyz' and the class with the factorial logic is named 'abc'. What should be the name of your program?