Which method is used to determine if a thread is still running?
Which of these methods is used to check for infinitely large and small values?
Which of these method(s) is/are used for writing bytes to an OutputStream?
Select how you would start the program to cause it to print: Arg is 2
class test{
public static void main (String[] args) {
int a= 15;
int b= 30;
int c=a^b;
System.out.println(~(~c)^~(a&b));
}
}
public class abekus
{
public static void main(String[] args) {
String str = "4434.94";
int a = Integer.parseInt(str);
System.out.println(a);
}
}
What happens when a constructor is defined for an interface?
What will be the out of the following program -
class Circle {
public static void main(String args[])
{
double r, pi, area;
radius = 7.8;
pi = 3.14;
a = pi * radius * radius;
System.out.println(area);
}
}
What will be the output of the following Java program?
public class Output {
public static void main(String[] args) {
byte a[] = { 65, 66, 67, 68, 69, 70 };
byte b[] = { 71, 72, 73, 74, 75, 76 };
System.arraycopy(a, 2, b, 3, a.length - 4);
System.out.print(new String(a) + " " + new String(b));
}
}