Java Programming Questions & Answers: part16



Software Programming : Java Programming QUESTIONS AND ANSWERS :: part16 : 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 stream is/are used to handle primitive data types?

BufferedOutputStream
DataInputStream
FileOutputStream
FileInputStream
All the above.

7.Which of the following package is automatically imported to your program file?

java.util
java.io
java.net
java.lang
java.math.

8.Which of the following is true for method overriding? #246. Which of the following is true for method overriding?

A method in the subclass that has the same name, same arguments and same return type as a method in the super class is orverridden
An overridden method advocates for inheritance in OOP
It is not possible to access the method which is overridden in a subclass
Overridden method in java is called virtual function
Overloading method in java is called virtual function.

9.Which of the following is not a valid Java identifier?

my Value
$_AAA1
width
m_x
my_value.

10.Which of the following is not true for a java thread?

The run method calls start method
The start method calls run method
Runnable interface contains only run method
The run method is overridden to contain the functionality of the application
Once we use the stop() method on a thread, we cannot use the start() method.

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