Predict the output of the following Java code.
Predict the output of the following Java code.
Which keyword is used to define packages in Java?
How many classes can be defined in a single Java file?
Which of the following is used to implement runnable interface.
Which of the following imports all Java classes concerned with database connectivity.
what happens in the case of multiple catch block executes
class testcase{
public static void main (String []args) {
try{
int a= Integer.parseInt("Abekus");
}
}
}
Statement 1- Collection is an Interface
Statement 2- A list is an Interface
Statement 3- A list is an object
Statement 4- Arraylist is a class
public class Abekus
{
public static void main(String args[])
{
StringBuffer s1 = new StringBuffer("Contribute");
s1.setCharAt(1, 'i');
s1.setCharAt(7, 'd');
System.out.println(s1);
}
}