Java OOPs Pertanyaan dan Jawaban Wawancara
Question: What is the 'throws' clause in Java?Answer: The 'throws' clause in Java is used to declare exceptions that a method might throw. It indicates that the method does not handle the exceptions and passes them to its caller.Example:
|
Simpan untuk Revisi
Bookmark item ini, tandai sebagai sulit, atau masukkan ke dalam set revisi.
Masuk untuk menyimpan bookmark, pertanyaan sulit, dan set revisi.
Apakah ini membantu? Ya Tidak
Most helpful rated by users: