Search This Blog

Saturday, July 5, 2025

Java String API - 2

 What is the output of the following code? 

(Hint: CharSequence is an interface.)



Created by Nancy K.A.N.

@12:10 05-Jul-2025

Follow on YouTube Coding With Nancy


2 comments:

  1. Replies
    1. that is correct. It leaves the first character J as the starting index value in string is Zero.

      Delete