Posts

Showing posts with the label java interview questions

MCQ of Java for Java Proficiency test [Solved PDF] - 3

All java classes are derived from A) java.lang.Class B) java.util.Name C) java.lang.Object D) java.awt.Window   The jdb is used to A) Create a jar archive B) Debug a java program C) Create C header file D) Generate java documentation   What would happen if "String[]args" is not included as argument in the main method. A) No error B) Compilation error C) Program won't run D) Program exit   For execution of DELETE SQL query in JDBC, ............. method must be used. A) executeQuery() B) executeDeleteQuery() C) executeUpdate() D) executeDelete()   Which method will a web browser call on a new applet? A) main method B) destroy method C) execute method D) init method   Which of the following is not mandatory in variable declaration? A) a semicolon B) an identifier C) an assignment D) a data type   When a program class implements an interface, it must provide behavior for A) two methods defined in that interface B) any methods in a class C) only certain methods ...

MCQ of Java - 2 [Solved PDF]

The JDBC-ODBC bridge allows ……….. to be used as ……….. A) JDBC drivers, ODBC drivers B) Drivers, Application C) ODBC drivers, JDBC drivers D) Application, drivers   Which of the following is true about Java. A) Java does not support overloading. B) Java has replaced the destructor function of C++ C) There are no header files in Java. D) All of the above.   ……………. are not machine instructions and therefore, Java interpreter generates machine code that can be directly executed by the machine that is running the Java program. A) Compiled Instructions B) Compiled code C) byte code D) Java mid code   The command javac A) Converts a java program into binary code B) Converts a java program into bytecode C) Converts a java program into machine language D) None of the above.   Which of the following is not the java primitive type A) Byte B) Float C) Character D) Long double   Command to execute compiled java program is A) java B) javac C) run D) javaw   Java Servlet ...