Question 6
Consider the Java code given below
import java.util.*;public class SetTest { //CODE BLOCK public boolean property(Integer marks) { if(marks>=40) return false; return true; } public void validate(Map<String, Integer> m) { for(Map.Entry<String, Integer> entry:m.entrySet()) { if(property(entry.getValue())) set1.add(entry.getKey()); else set2.add(entry.getKey()); } } public void display() { System.out.println(set1); System.out.println(set2); } public static void main(String[] args) { var student=new LinkedHashMap<String, Integer>(); student.put("AI", 26); student.put("EDC", 90); student.put("MEFA", 38); student.put("COA", 48); student.put("BEFA", 80); student.put("M1", 36); SetTest obj=new SetTest(); obj.validate(student); obj.display(); }}Choose the correct option(s) to be filled in place of CODE BLOCK so that the program always generates the output:
[AI, M1, MEFA]
[BEFA, COA, EDC]