Pertanyaan

1. A break statement causes control to transfer to the end of the switch statement True or False? True False 2. What is the output? public static void main(String args[]) char ch ='c'; switch(ch) case'a': case'e': case 'i": case 'o': case 'u': System.out.println("Vowels"); break; default: System.out.println("Consonants"); Vowels Consonants Compilation error Vowels

Solusi

Terverifikasi Ahli
4.6 (222 Suara)
Namita master ยท Tutor selama 5 tahun

Jawaban

1. **False**2. **Compilation error**