Menu
Question Index
...

What will be the output of the following program?

import java.util.*;
public class Aptitude {
    public static void main(String args[]) {
        NavigableMap<Integer, String> apt = new TreeMap<Integer, String>();
        apt.put(1, "Numbers");
        apt.put(4, "Simplification");
        apt.put(10, "Percentage");
        apt.put(13, "Patnership");
        System.out.println(apt.floorEntry(0));
    }
}


0
1
null
Compilation Error
Runtime Error

Doubts

Problems

Topic: TreeMap In Java - java.util.TreeMap

Read this topic
Take test on this topic

0
Wrong
Score more than 2 points

© meritcampus 2019

All Rights Reserved.

Open In App