Java Programming Questions & Answers: part10

Software Programming : Java Programming QUESTIONS AND ANSWERS :: part10 : 1 to 5

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

1.Java Bytecode is

the Java virtual machine version of machine code.
known as the Java interpreter or Java run time.
a set of programming statements entered into a text editor by a programmer.
similar to machine code which is specific to any processor.
not an additional layer in-between the source code and the machine code.

2.What information may be obtained from a ResultSetMetaData object?

Database URL and product name
JDBC driver name and version
Number of columns in the result set
Number of rows in the result set
Number of tables in the database.

3.Which of the following statements is true?

You may load multiple JDBC drivers in a program.
You may create multiple connections to a database.
You may create multiple statements from one connection.
You can send queries and update statements through a Statement object.
All of the above.

4.When you run an applet, which of the following is invoked first?

The init method
The applet's default constructor
The stop method
The destroy method
Start method.

5.When you run the following applet from a browser, what is displayed? import javax.swing.*; public class Test extends JApplet { public Test() { System.out.println("Default constructor is invoked"); } public void init() { System.out.println("Init method is invoked"); } }

Default constructor is invoked, then Init method is invoked
Init method is invoked, then Default constructor is invoked
Default constructor is invoked
Init method is invoked
Default constructor is invoked twice.

More Java Programming QUESTIONS AND ANSWERS available in next pages

    Health is the greatest gift, contentment is the greatest wealth -Buddha
Identify your problems but give your power and energy to solutions- Tony Robbins