πŸ“Š JAVA
Q. What will be the output of the following Java program?
Code:
class String_demo 
{
    public static void main(String args[])
    {
        int ascii[] = { 65, 66, 67, 68};
        String s = new String(ascii, 1, 3);
        System.out.println(s);
    }
}
  • (A) ABC
  • (B) BCD
  • (C) CDA
  • (D) ABCD
πŸ’¬ Discuss
βœ… Correct Answer: (B) BCD

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
158
Total Visits
πŸ“½οΈ
1 y ago
Published
πŸŽ–οΈ
Ranjeet
Publisher
πŸ“ˆ
85%
Success Rate