Which of these is not a design pattern used in java
Which of the following are methods in the java.io.InputStream class?
Which of these constants are defined in the WindowEvent class?
Which statement about a regular inner class is true?
public class result{
public static void main(String args[]){
String s1=new String("java");
String s2=new String("html");
System.out.println(s1.equals(s2));
}
}
1
check
What is the limitation of the toString()
method of BigDecimal
?
What will be the output of the following Java program?
class Output
{
public static void main(String args[])
{
Integer i = new Integer(257);
float x = i.floatValue();
System.out.print(x);
}
}
What is the use of wildcards in programming?
public class Demo123{
public static void main(String args[]){
String s1= new String("hello");
String s2= new String("Hello");
System.out.println(s1==s2);
System.out.println(s1.equals(s2));
}
}
Choose the correct option for this code.
class Abekus extends Thread {
public
void run()
{
System.out.println("code run");
}
} class Abekusmain {
public
static void main(String[] args)
{
Abekus a = new Abekus();
a.start();
}
}