Pergunta de entrevista da empresa FIS

Bean scopes. Student object has addresses object. Student is singleton . addresses is prototype. Getting students obj will get address in which scope. ? if I want to make addresses in student as prototype scope then what to do? Creating custom exception should be checked or unchecked? Stream problems Overriding rules Polymorphism P throws IOException , SubClass extends P throws Exception --- valid? How to maintain order of insertion in Set Map. If added duplicate keys then will previous key value will be overridden ? Student Map same object added in map – what will be the size of map? If I want the unique student then? Override equals and hashcode.