Company Name - Sapient Corporation
Date - 20 - 9 - 1017
Round - 1st Telephonic, questions are mostly in Java
Questions -
1. OOPS concepts and examples
2. Solid principles ( SOLID)
3. Singleton, (write code using volatile and double checking of null and explain why use double checking),
4. how to break singleton pattern (reflextion, serialize , overriding clone method)
5. Tell me about enum
6. Expection heriercy and how to create custom exceptions
7. Immuatable class , why, how you write immuatable classes
8. Deep and shaloow copy in cloning (differnce and effect in immutable classes if we use shallow in place of deep copy)
9. how set internally implemented ( set is internally implemented using map , and in place of value , it uses random object)
10. which all design patterns you know(singleton , adaptor, factory, observer, decorator, builder are common ( must know 2 -3 and example in code )
11. What is Marker interface (Interface with not method) ,
12. Why we need marker interface when it has no method
13. Static method override (We don't actually override them)
14. JDBC working steps
15. Java Generics - Example of what happens if you don't use generics
16. hashcode() and equals() methods, why we need to override equals
17. Comparator Interface in java
18. Write program to check if Number/String is palindrom or not
19. Take bank account, design system where person has multiple accounds in Same bank
Date - 20 - 9 - 1017
Round - 1st Telephonic, questions are mostly in Java
Questions -
1. OOPS concepts and examples
2. Solid principles ( SOLID)
3. Singleton, (write code using volatile and double checking of null and explain why use double checking),
4. how to break singleton pattern (reflextion, serialize , overriding clone method)
5. Tell me about enum
6. Expection heriercy and how to create custom exceptions
7. Immuatable class , why, how you write immuatable classes
8. Deep and shaloow copy in cloning (differnce and effect in immutable classes if we use shallow in place of deep copy)
9. how set internally implemented ( set is internally implemented using map , and in place of value , it uses random object)
10. which all design patterns you know(singleton , adaptor, factory, observer, decorator, builder are common ( must know 2 -3 and example in code )
11. What is Marker interface (Interface with not method) ,
12. Why we need marker interface when it has no method
13. Static method override (We don't actually override them)
14. JDBC working steps
15. Java Generics - Example of what happens if you don't use generics
16. hashcode() and equals() methods, why we need to override equals
17. Comparator Interface in java
18. Write program to check if Number/String is palindrom or not
19. Take bank account, design system where person has multiple accounds in Same bank
No comments:
Post a Comment