Java Programming Questions & Answers: part15



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

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

6.Which of the following is not necessarily related to RMI?

Stub and skeleton
Remote interface
Graphical User Interface
Client and Server
Protocol.

7.When we invoke repaint () for a java.awt.Component object, the AWT invokes the method

Insert()
update()
draw()
show()
paint().

8.Which of the following classes are available in the java.lang package? I. Stack. II. Object. III. Math. IV. String. V. StringBuffer. Choose the correct option from the following:

(II), (III), (IV) and (V) above
(II), (III) and (IV) above
(II), (IV) and (V) above
(III), (IV) and (V) above
All (I), (II), (III), (IV) and (V) above.

9.Examine the following code snippets to identify the legal loop constructs: I. for (int i = 22, int j = 0; i + j > 11; i = i-3, j++) {... (Other statements) } II. int i = 100; while(i) {... (other statements) } III. while (int i > 0) {i--;... (other statements) } IV. int i = -10, sum = 0; do {... (other statements) } while(sum < 5 || i < 0);

Both (I) and (IV) above
Only (I) above
Only (II) above
Both (I) and (III) above
All (I), (II), (III) and (IV) above.

10.Which is the latest version of the Java language?

Java 5.0
Java 6.0 Alpha
Java 6.0 Beta
Java 7.0
Java 7.0 Beta.

More Java Programming QUESTIONS AND ANSWERS available in next pages

    Health is the greatest gift, contentment is the greatest wealth -Buddha
Too many of us are not living our dreams because we are living our fears.- Les Brown