TransferQueue is not a subinterface of Queue
Interpreter convert bytecode to machine language code
Which of these methods waits for the thread to terminate?
Which of these methods is used to implement the Runnable interface?
If you pass an array to the method then the method receives
What is the correct output?
public class Abekus {
int x = 5;
public static void main(String[] args) {
Abekus a = new Abekus();
System.out.println(a.x);
}
}
public class j{
public static void main(String args[]){
String s1=new String("java");
String s2=new String("JAVA");
System.out.println(s1.equals(s2));
}
}
Which is the correct option?
class Abekus {
final public void show() {
System.out.println("Abekus::show() called");
}
}
class Derived extends Abekus {
public void show() {
System.out.println("Derived::show() called");
}
}
public class Main {
public static void main(String[] args) {
Abekus a = new Abekus();;
a.show();
}
}
class show
{
public static void main(String args[])
{
try
{
int a = 6;
int b = 7;
int c = b / a;
System.out.print("Abekus");
}
catch(Exception e)
{
System.out.print("Slack");
}
}
}