scjp MCQ Question and Answer

scjp MCQ Question and Answer
51. Which of the following statements are true?
  • A method can throw an Exception
  • A method can return an Exception
Show Answer
52. The following express char c = -1;
  • will cause a compiler error as the range of character is between 0 and 2^16 - 1. Will request for an explicit cast.
  • will not cause a compiler error and c will have the value -1;
  • c will not represent any ascii character.
  • c will still be a unicode character.
Show Answer
Questions and Answers for Competitive Exams Various Entrance Test