Menu
Question Index
...

What is the output of the following program?

public class Arrangement {
    public static void main(String[] args) {
        int in = 12345;
        boolean bol = true;
        System.out.format("%d", in);
        System.out.format("%d", bol);
    }
}


12345
true
12345
1
12345
Compilation Error
Runtime Error

Doubts

Problems

Topic: Java Formatter

Read this topic
Take test on this topic

0
Wrong
Score more than 2 points

© meritcampus 2019

All Rights Reserved.

Open In App