Core java basics questions bank for quiz and answers
(1)
public class ArrayDemo {
public static void main(String[] args) {
int [] arr1,arr2;
arr1=new int[1];
arr2=new int[2];
arr1[0]='\n';
arr2[0]='a';
System.out.print(arr2[0]%arr1[0]);
}
}
What will be output of above program?
(a)6
(b)7
(c)0
(d)Compiler
No comments:
Post a Comment