Java Programming Questions & Answers: part6



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

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

1.What is the sequence of major events in the life of an applet?

init, start, stop, destroy
start, init , stop , destroy
init, start , destroy, stop
init, start, destroy
destroy, start, init, stop.

2.What is the return type of the method getID() defined in AWTEvent class

Int
long
Object
Component
float.

3.Given a class named Book, which one of these is a valid constructor declaration for the class?

Book(Book b) { }
Book Book() { }
private final Book() { }
void Book() { }
abstract Book() { }.

4.Given the code String s1 = β€œ yes” ; String s2 = β€œ yes β€œ ; String s3 = new String ( s1); Which of the following would equate to true?

s1 == s2
s1 = s2
s3 == s1
s3=s1
s1!=s2.

5.What is the fundamental unit of information of writer streams?

Characters
Bytes
Files
Records
Information.

More Java Programming QUESTIONS AND ANSWERS available in next pages

    Health is the greatest gift, contentment is the greatest wealth -Buddha
The only place where success comes before work is in the dictionary.- Vidal Sassoon