double d= OX123.456(hexa decimal representation)
The poll () method is used to remove the head of the list
What is the parent class of the annotation class?
A class member declared protected becomes a member of subclass of private member
The range of 'short' data type is
Which method is used to extract a substring from a String?
String days[]={"Sun","Mon","wed","thu","fri","sat"};
System.out.print(days.length);
What will be the output of the following?
When a program class implements an interface, it must
provide behavior for
class test{
public static void main (String[] args) {
int a=7;
int b=15;
a+=(~b);
if(a<0 || (a^b)>10)
{
System.out.println(~a);
}
else
{
System.out.println(b);
}
}
}
what should be the output of this code block?
import java.util.*;
public class abekus {
public static void main(String args[]) {
int tab[] = new int[6];
for (int i = 6; i > 0; i--)
tab[6 - i] = i;
Arrays.fill(tab, 1, 5, 0);
for (int i = 0; i < 6; i++)
System.out.print(tab[i]);
}
}