What is the output of the following Java program?
After line 8 runs, how many objects are eligible for garbage collection?
Which method is used to begin the execution of a thread?
How to change byte to String
Which of these methods is used to compare a specific region inside a string with another specific region in another string?
which of the following is true for java
public class outputs
{
public static void main(String args[])
{
double v1 = 1 + 5;
float v2 = v1 / 4;
int v3 = v2 + 5;
int v4 = v3 / 4;
System.out.print(v4);
}
}
What is the output of the following Java code?
public class Abekus {
public static void main(String[] arr) {
System.out.println("Amrit Anand");
}
public static void main(String arr) {
System.out.println("Hello World!");
}
}
Predict the output of the following Java code.
import java.util.*;
class Abekus {
public static void main (String[] args) {
Object i = new ArrayList().iterator();
System.out.print((i instanceof List) + ", ");
System.out.print((i instanceof Iterator));
}
}