Question: Java t can contain viruses Unless you need to edit, it's safer to stay in Protected View.Enable Editing What is the output of the following

 Java t can contain viruses Unless you need to edit, it'sJava

t can contain viruses Unless you need to edit, it's safer to stay in Protected View.Enable Editing What is the output of the following codes? String donaldDuck- "in class exercises"; 1. System.out.println (donaldDuck charAt () 2. System.out printin ( donaldDuck.charAt (S)) 3. System.out println ( donaldDuck.length O); 4. System-out println ( donaldDuck. replace ( .c'b' ) ) ; 5. System.out.println ( donaldDuck substring (3,7)) 6. System.out.printin ( donaldDuck substring (0,2)); 7. System.out.printin (donaldDuck.tolpperCase (O): 8. System.out.println ( donaldDuck.toLowerCase)): 9. System.out println "Apple" starts With" Apl") 10. System.out printin "Apple". endsWith"le") 11. System.out.printin "Apple" indexO p') 12. String "Donald Duck": int index-x.indexof JOne blank space character String a -xsubstring(O,index) System.out.println (a) String b- x.substring(index+1) System.out.printin (b) 13. What is the output of the code in the previous problem if- "John Doe" "Amy Lee"? 14. System out println ( String.format (-%3f", 2.33333) ) : 16. Systemout printla ( "The price is S" + String. format (-%2f-, 2.33313) ); DOLL

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!