41. Java is a _______________language? A. moderate typed B. strogly typed C. weakly typed D. none of these ✅ The correct answer is option B.
42. What is the output for the below code ? public class Test{public static void main(String[] args){int i = 010; int j = 07;System.out.println(i); System.out.println(j); } } ? A. 7 8 B. 8 7 C. 9 8 D. None ✅ The correct answer is option B.
43. Which class cannot be subclassed (or extended) in java ? A. Final class B. abstract class C. parent class D. None of above ✅ The correct answer is option A.
44. Automatic type conversion in Java takes place when________________? A. Two type are compatible and size of destination type is equal of source type. B. Two type are compatible and size of destination type is larger than source type. C. Two type are compatible and size of destination type is shorter than source type. D. All of the above ✅ The correct answer is option B.
45. Name the keyword that makes a variable belong to a class, rather than being defined for each instance of the class? A. abstract B. static C. volatile D. final ✅ The correct answer is option B.
46. Package of drawstring() method is _________________? A. java.awt B. javax.swing C. java.applet D. java.io ✅ The correct answer is option A.
47. The class java.sql.Timestamp is associated with _____________? A. java.util.Date B. java.util.Time C. java.sql.Time D. None of above ✅ The correct answer is option A.
48. Which statements are most accurate regarding the following classes? class A{private int i; protected int j; } class B extends A{ private int k; protected int m; } ? A. An object of B contains data fields j, k, m B. An object of B contains data fields k, m C. An object of B contains data fields j, m D. An object of B contains data fields i, j, k, m ✅ The correct answer is option A.
49. Which driver is called as thin-driver in JDBC ? A. Type-1 driver B. Type-2 driver C. Type-3 driver D. Type-4 driver ✅ The correct answer is option D.
50. Super is the predefined_______________? A. Method B. Keyword C. Keyword and Method D. None of above ✅ The correct answer is option C.