scjp MCQ Questions and Answers

Practice Mode
Showing 10 of 52 questions
Q51
Which of the following statements are true?
  • A A method can throw an Exception
  • B A method can return an Exception
Answer: Option
Q52
The following express char c = -1;
  • A will cause a compiler error as the range of character is between 0 and 2^16 - 1. Will request for an explicit cast.
  • B will not cause a compiler error and c will have the value -1;
  • C c will not represent any ascii character.
  • D c will still be a unicode character.
Answer: Option A
Questions and Answers for Competitive Exams Various Entrance Test