Exam 14: Java Programming:methods, Data Types, Operators, and Classes

arrow
  • Select Tags
search iconSearch Question
flashcardsStudy Flashcards
  • Select Tags

Which of these exceptions will be thrown if we use null reference for an arithmetic operation?

Free
(Multiple Choice)
4.9/5
(35)
Correct Answer:
Verified

B

Which of these class is a superclass of all other classes?

Free
(Multiple Choice)
5.0/5
(33)
Correct Answer:
Verified

D

Which keyword is used by the method to refer to the object that invoked it?

Free
(Multiple Choice)
4.8/5
(33)
Correct Answer:
Verified

D

Which of these method(s) is/are used for writing bytes to an outputstream?

(Multiple Choice)
4.9/5
(47)

Which of these methods of a Thread class is used to suspend a thread for a period of time?

(Multiple Choice)
4.8/5
(38)

Which of the interface contains all the methods used for handling thread related operations in Java?

(Multiple Choice)
4.8/5
(38)

Which of these operators is used to allocate memory for an object?

(Multiple Choice)
4.9/5
(38)

Which of the below is invalid identifier with the main method?

(Multiple Choice)
4.8/5
(41)

Which of this method of class String is used to obtain a length of String object?

(Multiple Choice)
4.9/5
(38)

What is the string contained in s after following lines of code? StringBuffersnewStringBuffer("Hello");S)deleteCharAt(0);

(Multiple Choice)
4.9/5
(39)

How to copy contents of array?

(Multiple Choice)
4.7/5
(45)

Which of these class is not related to input and output stream in terms of functioning?

(Multiple Choice)
4.8/5
(34)

Which of these data type can be used for a method having a return statement in it?

(Multiple Choice)
4.8/5
(32)

Which of these are selection statements in Java?

(Multiple Choice)
4.8/5
(38)

Which of these selection statements test only for equality?

(Multiple Choice)
4.9/5
(28)

Which of these classes is used for input and output operation when working with bytes?

(Multiple Choice)
4.8/5
(31)

Which of these jump statements can skip processing the remainder of the code in its body for a particular iteration?

(Multiple Choice)
4.8/5
(31)

If an expression contains double, int, float, long, then the whole expression will be promoted into which of these data types?

(Multiple Choice)
4.8/5
(35)

Which of these is the method which is executed first before execution of any other thing takes place in a program?

(Multiple Choice)
4.9/5
(35)

Which of these can not be used for a variable name in Java?

(Multiple Choice)
4.8/5
(24)
Showing 1 - 20 of 25
close modal

Filters

  • Essay(0)
  • Multiple Choice(0)
  • Short Answer(0)
  • True False(0)
  • Matching(0)