How many constructors in the String class?
Predict the output of the following Java code.
Which of the following is an incorrect JUnit annotation?
Sometimes it may be required to call a method without the help of object.
True or False?
Predict the output of the following Java code:
Predict the output of the following Java code.
Which one of the following will declare an array and initialize it with five numbers?
public class outputs
{
public static void main(String args[])
{
int a=10;
int b=20;
int c=15;
int sum=0;
if(a==b){
sum= a%b%c;
System.out.println(a);
}
else{
System.out.println(sum);
}
}
}
Which statements about packages in Java are correct?