Given the following local variable declarationsString a = “Enter your Complete Name”;String s = a;String t;What is the value of the following expressions (or ERROR)?1. __________ s.length()2. __________ t.length()3. __________ 1 + a4. __________ a.toUpperCase()5. __________ "Tomorrow".indexOf("r")6. __________ "Tomorrow".lastIndexOf('o')7. __________ "Tomorrow".substring(2,4)8. __________ (a.length() + a).startsWith("a")9. __________ s = = a10. __________ a.substring(1,3).equals("bc")
Provide output screenshots
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here