Can we serialize static variables in java?
Which of these methods is a rounding function of the Math class?
Which of these method(s) is/are used for writing bytes to an output stream?
Statment 1- The front pointer points to the first element;
Statement 2- The rear pointer points to the last element
What is the output of the following Java code?
class Abekusmain {
public static void main(String args[]){
final int i = 50;
System.out.println(i);
}
}
What will be printed as the output of the following program?
public class Abekus {
public static void main(String args[]) {
int i = 0;
i = i++ + i;
System.out.println("I = " +i);
}
}
what should be the output of this code block ?
public class abekus {
public static void m1(int temp) {
temp *= 2;
temp = 15;
}
public static void main(String[] args) {
int a = 10;
m1(a);
System.out.print(a);
}
}
What is the output of the following Java code?
class Test {
public static void main(String args[]) {
final int a = 10, b = 20;
while (a < b) {
System.out.println("Hello");
}
System.out.println("World");
}
}
Predict the output of the following Java code:
import java.util.*;
public class Abekus {
public static void main(String[] args) {
LinkedList l = new LinkedList();
l.add(6);
l.add(8);
l.add(4);
l.add(2);
while(!l.isEmpty())
{
System.out.print(l.poll());
}
}
}
Select the correct option for the given code.
import java.util.ArrayList;
class Abekus {
public void Display()
{
ArrayList<String> l = new ArrayList<String>();
l.add("Suraj");
l.add("chand");
l.add("sitare");
System.out.print(l.get(0)); // line 5
}
} public class Abekusmain {
public static void main(String[] args)
{
Abekus A = new Abekus();
A.Display();
}
}