Tag: programming languages
Questions Related to programming languages
Which of the following when turned on do not allow incompatible type conversion?
List mylist = new ArrayList(); mylist.add(5); If you compile this lines in JAVA 1.5 , it will give compilation error.
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);}