What will be the result of compiling and executing Test class?1. package com.udayan.oca;2. 3. import java.util.ArrayList;4. import java.util.List;5. 6. public class Test {7. public static void main(String[] args) {8. List list = new ArrayList();9. list.add(100);10. list.add(200);11. list.add(100);12. list.add(200);13. list.remove(new Integer(100));14. 15. System.out.println(list);16. }17. }
Which of the following are Java Exception classes?Select 3 options.
Which statement is true about the switch statement?
What will be the result of compiling and executing Test class?package com.udayan.oca; public class Test { public static void main(String[] args) { m1(null); } static void m1(CharSequence s) { System.out.println("CharSequence"); } static void m1(String s) { System.out.println("String"); } static void m1(Object s) { System.out.println("Object"); }}
Given the code fragment:
What is the result?
© Copyrights FreePDFQuestions 2026. All Rights Reserved
We use cookies to ensure that we give you the best experience on our website (FreePDFQuestions). If you continue without changing your settings, we'll assume that you are happy to receive all cookies on the FreePDFQuestions.