Question 1
What is the java.net.IDN class in 1.6?
Methods to resolve integrated domain names (IDNs), such domain names are special embedded names
Methods to swap bytes between network byte order and host byte order
Methods to convert internationalized domain names (IDNs) between a normal Unicode representation and an ASCII Compatible Encoding (ACE) representation
This class does not exist
None of the above
Question 2
What will be the output of the following program?public class Test
{
public static void main (String args[]) throws Exception
{
Test o = new Test ();
System.out.println (o.content ());
}
public String content () throws Exception
{
throw new Exception ("This is an exception on this.content ()");
}
private static class B
{
public String content ()
{
return ''B'';
}
}
private static class A extends B
{
public String content ()
{
return ''A'';
}
}
}
The code will fail to compile
The code will compile but throw an exception at runtime
The code will compile and on running, it will print ''A''
The code will compile and on running, it will print ''B''
Question 3
Which of these interfaces are used by implementations of models for JTable?
TableModel
TableColumnModel
TableSelectionModel
ListModel
Question 4
How many times can classes be nested within a class?
5
8
4
Any number of times













