Saved Bookmarks
| 1. |
Find the output of the following Java code snippet after execution of each java statement labelled as Line 1, Line 2, Line 3, Line 4:String userid="INDIA",pwd="";pwd=userid.substring(0,2); //Line 1int L=userid.length(); //Line 2pwd=pwd.toLowerCase(); //Line 3pwd=pwd.concat(""+L); //Line 4 |
|
Answer» The output is: IN 5 in in5 |
|