What does the following code display? String s= "What we think, we become"; String s1 = s.substring(5); String s2 = s1.s

Business, Finance, Economics, Accounting, Operations Management, Computer Science, Electrical Engineering, Mechanical Engineering, Civil Engineering, Chemical Engineering, Algebra, Precalculus, Statistics and Probabilty, Advanced Math, Physics, Chemistry, Biology, Nursing, Psychology, Certifications, Tests, Prep, and more.
Post Reply
answerhappygod
Site Admin
Posts: 899603
Joined: Mon Aug 02, 2021 8:13 am

What does the following code display? String s= "What we think, we become"; String s1 = s.substring(5); String s2 = s1.s

Post by answerhappygod »

What Does The Following Code Display String S What We Think We Become String S1 S Substring 5 String S2 S1 S 1
What Does The Following Code Display String S What We Think We Become String S1 S Substring 5 String S2 S1 S 1 (77.16 KiB) Viewed 16 times
What does the following code display? String s= "What we think, we become"; String s1 = s.substring(5); String s2 = s1.substring(3); System.out.println(s2); Select one A. at we think, we become OB. think, we become OC. hink, we become D. nothing this is an erron
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply