Menu
Question Index
...

What will be the output of the following program?

import java.util.*;
public class Java {
    public static void main(String[] args) {
        String input = "Java school";
        StringBuffer buffer = new StringBuffer(input);
        Formatter convert = new Formatter(buffer, Locale.ENGLISH);
        System.out.println(convert);
    }
}


(EMPTY)
Java school
Compilation Error
Runtime Error

Doubts

Problems

Topic: Formatting Strings And Characters By Using Formatter

Read this topic
Take test on this topic

0
Wrong
Score more than 2 points

© meritcampus 2019

All Rights Reserved.

Open In App