Question 4 / 35:  output ?
public class Program114 {

char c;

void printall(){

System.out.println(c);

}

public static void main(String[] args) {

Program114 t = new Program114();

t.printall();

StringBuilder message = new StringBuilder("Hello java!");

int pos =0 ;

try{

for(pos =0;pos<12;pos++){

switch(message.charAt(pos)){

case 'a':

case 'e':

case 'o':

String uc = Character.toString(message.charAt(pos)).toUpperCase();

message.replace(pos, pos+1, uc);

}

}

}catch(Exception e){

System.out.println("Out of Limits");

}

System.out.println(message);

}

}

A  Out of Limits HEllO jAvA!
B  hEllOjAvA!
C  Hello java!
D  Out of limits
<< First < Previous Next > Last >>
Quiz Home Page
https://www.jobilize.com/ocjp-1z0-803-oca1-7-mock-exam-part-ii-quiz-by-pankaj-amdocs-gurg

OCA(1z0-803_OCA1.7)MockExamPII

Author:

Access: Public Instant Grading

Ask
Copy and paste the following HTML code into your website or blog.
<iframe src="https://www.jobilize.com/embed/ocjp-1z0-803-oca1-7-mock-exam-part-ii-quiz-by-pankaj-amdocs-gurg" width="600" height="600" frameborder="0" marginwidth="0" marginheight="0" scrolling="yes" style="border:1px solid #CCC; border-width:1px 1px 0; margin-bottom:5px" allowfullscreen webkitallowfullscreen mozallowfullscreen> </iframe>