Two class are never equal
JIT is responsible to optimize bytecode to machine code
Predict the output of the following Java code.
Predict the output of the following Java code.
Which of these classes has only one field 'TYPE'?
Which of this method is used to obtain the class of an object?
descendingIterator(): This method returns an iterator over the elements in this deque in reverse sequential order.
What will be the output of the following Java program?
class String_demo
{
public static void main(String args[])
{
char chars[] = {'a', 'b', 'c'};
String s = new String(chars);
System.out.println(s);
}
}
Predict the output of the following code:
import java.util.Scanner;
public class Main
{
public static void main(String args[])
{
String s1 = new String("abekus");
String s2 = new String("Abekus");
System.out.println(s1=s2);
}
}