Index not present exception handle by indexoutofbond
Front and read pointers point to the first element
What data type is returned by all transcendental math functions in Java?
Which keyword must be used to handle the exception thrown by a try block?
Which event is generated when a button is pressed?
According to best practices, how should the variables of a class be declared?
Which Java package contains all the classes and methods required for event handling?
Which of the following methods of the System class is used to find how long a program takes to execute?
class test{
public static void main (String[] args) {
for(int i=0;;i++)
{
System.out.println("Hello");
}
System.out.println("World");
}
}
What should be the output of this code block?
interface A {
int var = 2;
}
class B implements A {
void show() {
var = 3;
System.out.println("var = " + var);
}
}
public class Main {
public static void main(String[] args) {
B obj = new B();
obj.show();
}
}