In JAVA 1.5, can we have two overridden methods with different return types?
True
False
Serializable interface has two methods which MUST overridden when a class implemnts Serializable interface.
List mylist = new ArrayList(); mylist.add(5); If you compile this lines in JAVA 1.5 , it will give compilation error.
For Arrays & Collection, Sort order & search order need not to be SAME.
What will be the output?public static void main(String[] args) { for (int i=0;i<= 10;i++){if( i>6) break;}System.out.println(i);}
runtime exception
6
7
comiple error.
10
What will be the output?public static void main(String[] args) { for (int i=0;i<= 10;i++) { if( i>6) break; }System.out.println(i); }
Runtime exception
Compile Error
11
Serializable interface has two methods which MUST be overridden when a class implemnts Serializable interface.
Teradata Basic concepts dictate that a Primary Key can be NULL