Which file separator should be used in the MANIFEST file?
We can implement multiple inheritance by using
Which concept of Java is a way of converting real world objects in terms of class?
Which of the following technique does hashTable internally use for inserting and retrieving elements?
Public class Test(){
public static void main(String args[]){
String str="Hello World!";
System.out.println(____________);
}
}
Fill the blank to print the length of the string str.
//Predict the output
import java.util.Scanner;
public class MyClass
{
public static void main(String args[])
{
String str = "Java developer";
char ch = str.charAt(2);
System.out.println(ch);
}
}
What will be the output of the following Java program?
public class Test
{
public static void main(String[] args)
{
int x = 0;
assert (x > 0) ? "assertion failed" : "assertion passed" ;
System.out.println("finished");
}
}
Statement 1- printLocalisedMessage() methods return localized description of an exception
Staement 2- obtainLocalisedMessage() methods return localized description of an exception
Statement 3- getLocalisedMessage() methods return localized description of an exception
Predict the output of the following Java program.
public class Abekus {
public static void Abekus1(String s)
{
System.out.println("String : " + s);
}
public static void Abekus1(Object o)
{
System.out.println("Object : " + o);
}
public static void main(String args[])
{
Abekus1(null);
}
}