Dynamic allocation of object id done by using ____keyword.
What will be the output of the following code?
In java String is a
Which of the following keywords is not part of exception handling in Java?
Which type of variables is not supported in Java?
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((b + d - f));
}
}
What will be the output of the following Java program if we run it using the command java Outer$Inner
?
Predict the output of the following Java code:
import java.util.Scanner;
public class Main
{
public static void main(String args[])
{
String s = "Abekus";
System.out.println(s.toUpperCase().length());
}
}
Predict the output of the following Java code.
class Abekus {
public static void main(String[] args)
{
String[] str = { "Abekus", " is a ", " good platform for practice." };
System.out.println(str.length);
System.out.println(str[0].length());
}
}