Menu
Question Index
...

What will be the output of the following program?

public class IslamicArchitecture {
    public static void main(String[] args) {
        String name = "Charminar";
        StringBuffer place = new StringBuffer(name);
        for (int i = 0; i < place.length(); i++) {
            System.out.print(name.charAt(i));
        }
    }
}


Charmina
Charminar
Compilation Error
Runtime Error

Doubts

Problems

Topic: Java charAt() And setCharAt() Methods in StringBuffer

Read this topic
Take test on this topic

0
Wrong
Score more than 2 points

© meritcampus 2019

All Rights Reserved.

Open In App