Java Programming Questions & Answers: part17



Software Programming : Java Programming QUESTIONS AND ANSWERS :: part17 : 6 to 10

Following Software Programming language Entrance Multiple choice objective type questions and answers will help you in Software Programming 2024 examinations :

6.What does the following code do? smt=con.createStatement();

A Prepared Statement object is created to send sql commands to the database
A Statement object is created to send sql commands to the database
A callable Statement is created to send sql commands to the database
A Statement object is created to execute parameterise SQL commands
A Default Statement object is created to send sql commands to the database.

7.If ClassA extends ClassB, then

ClassA is a superclass
ClassB is a base class
ClassB is a subclass
ClassB is a derived class
ClassA is a base class.

8.What is the value of result after the following Java statements execute? int a, b, c, d; a = 4;b = 12; c = 37; d = 51; result = d % a * c + a % b + a;

119
51
127
59
159.

9.When an applet container encounters an HTML file that specifies an applet to execute, the applet container automatically loads ________ of the applet from the same directory as that of the HTML file. #261. When an applet container encounters an HTML file that specifies an applet to execute, the applet container automatically loads ________ of the applet from the same directory as that of the HTML file.

the .java file
the .class file
the main line
the .htm file
the .jva file.

10.Which is identified as the first ever Object Oriented Programming Language?

C++
C
Java
Simula 67
Small talk.

More Java Programming QUESTIONS AND ANSWERS available in next pages

    Health is the greatest gift, contentment is the greatest wealth -Buddha
Trust because you are willing to accept the risk, not because it’s safe or certain