What is the priority of the thread in the following Java program?
Which of this datatype value is returned by equals() method?
What is the correct way to implement an interface A in a class B?
Which of these is the process of extracting or recovering the state of an object from a stream?
What is a HashMap in Java?
What is the use of an interpreter?
What is an instance method in Java?
Statment 1- put() method is used to insert value and its key
Statment 2- set() method is used to insert value and its key
Statment 3- addelement() method is used to insert value and its key
What is process switching?
What will be the output of the following code?
class A
{
public int a;
static int b;
void cal(int x, int y)
{
a += x ;
b += y;
}
}
class main
{
public static void main(String args[])
{
A obj1 = new A();
A obj2 = new A();
obj1.a = 0;
obj1.b = 0;
obj1.cal(10, 20);
obj2.a = 0;
obj2.cal(20, 30);
System.out.println(obj1.a + " " + obj2.b);
}
}