31. Size of float and double in Java is________________? A. 32 and 64 B. 64 and 64 C. 32 and 32 D. 64 and 32 ✅ The correct answer is option A.
32. Which type of inheritance is not supported by java_____________? A. Single B. Mulilevel C. Hirarchical D. Multiple ✅ The correct answer is option D.
33. In java, gc() method is available in which package ? A. java.io package B. java.lang package C. java.awt package D. java.util package ✅ The correct answer is option B.
34. What is meaning of jar ? A. java array B. java architecture C. java archived D. none of these ✅ The correct answer is option C.
35. JAR file contains the compressed version of_________________? A. .java file B. .jsp file C. .class file D. None of above ✅ The correct answer is option C.
36. Which method is used to perform DML statements in JDBC ? A. executeUpdate() B. executeQuery() C. execute() D. None of above ✅ The correct answer is option A.
37. A package is a collection of__________________? A. Classes and Interfaces B. Classes C. Editing tools D. Editing tools and Interfaces ✅ The correct answer is option A.
38. What will be output of following program? public class Test{public static void main(String[] args){byte b=127; b++; b++; System.out.println(b); } } ? A. 127 B. -127 C. 129 D. -129 ✅ The correct answer is option B.
39. What will the output of the following program? public class Test{ public static void main(String args[]){float f = (1 / 4) * 10; int i = Math.round(f); System.out.println(i); } } ? A. 0 B. 1 C. 2 D. 3 ✅ The correct answer is option A.
40. What do you mean by javap? A. java compiler B. java debugger C. java Interpreter D. java Disassemble ✅ The correct answer is option D.