Pt1420 Unit 3

465 Words2 Pages
UNIT I JAVA PROGRAMMING Data Types, Variables and Arrays 1. Automatic type conversion in Java takes place when a. Source and destination type are compatible and size of destination type is shorter than source type. b. Source and destination type are compatible and size of destination type is equal of source type. c. Source and destination type are compatible and size of destination type is larger than source type. d. All of the above 2. The smallest integer size is ......... bits and its type is ......... . a. byte- 16 b. short- 8 c. short- 16 d. byte- 8 3. The word true is ................ in java a. a java keyword b. same as value 1 c. a boolean literal d. none of the above 4. Which of the following data types comes under integer…show more content…
new b. this c. Super d. Upper 9. A class member declared protected becomes member of derived class of which type? a. public member b. private member c. protected member d. static member 10. Which of these keywords must be used to monitor for exceptions? a. throw b. finally c. try e. catch Thread & Package 11. What is multithreading? a. It is a process in which two or more parts of same process run simultaneously. b. It is a process in which a single process can access information from many sources. c. It is a process in which many different process are able to access same information. d. It is a process in which two different processes run simultaneously. 12. Which of following packages contain all the built in exceptions in java? a. java.lang b. java.net c. java.util d. java.io 13. Thread priority value in Java is? a. Double b. Long c. Boolean d. Integer 14. Which one is wrong in thread aspect? a. start() method is used to begin execution of the thread. b. run() method is used to begin execution of a thread before start() method in special cases. c. a thread can be formed by a class that extends Thread class. d. a thread can be formed by implementing Runnable interface

More about Pt1420 Unit 3

Open Document