public abstract void method();
Try and catch allows us to manually handle the exception
What is the output of the following Java program?
Which Java package contains classes and interfaces for networking?
Predict the output of the following Java code.
Which of the following is not an advantage of using Hibernate Query Language (HQL)?
How many times 'abekus' is printed?
public class abekus
{
public static void main(String[] args) {
while (false) {
System.out.println("abekus");
}
}
}
What will be the output of the given code if Ram Sharma is passed as argument while running the program?
class Main
{
int a=2000;
public static void main(String argv[])
{
System.out.println(argv[1]+" :-Please pay Rs."+a);
}
}
What will be the output of the following Java program?
TreeSet<String> map = new TreeSet<>();
map.add("one");
map.add("two");
map.add("three");
map.add("four");
map.add("one");
Iterator<String> it = map.iterator();
while (it.hasNext())
{
System.out.print(it.next() + " ");
}
Predict the output of the following Java code:
class Abekus extends Thread {
public void run()
{
System.out.println("Code Run, ");
}
} class AbekusMain {
public static void main(String[] args)
{
Abekus o = new Abekus();
o.start();
System.out.println("Main code run, ");
}
}