Question 6 (5 points) Which of the following is not a primitive data type in Java? boolean O int String float
Question 7 (10 points) Which of the following statements is true? A static field is a method that belongs to a class, not a specific object. An instance field is data that belongs to a class, not a specific object. A static method is a method that can be called without any instances of a class in existence. An instance method can be called only on static fields.
Question 8 (5 points) Which of the following is not one of the three primary principles of Object-Oriented Programming (OOP)? Polymorphism Encapsulation Association Inheritance
Question 9 (5 points) True or false: ArrayLists can hold any type of data directly, including any primitive or reference data. For example, ArrayList<String>, ArrayList<double>, ArrayList<int>, ArrayList<Rectangle> are all valid. True False
Question 11 (5 points) Which of the following packages does the Scanner class live in? java.lang java.text java.util javax.swing
Question 6 (5 points) Which of the following is not a primitive data type in Java? boolean O int String float Question
-
- Site Admin
- Posts: 899603
- Joined: Mon Aug 02, 2021 8:13 am