Important Java Q
Important Java Q
Q.1 What is the Java Collection Framework? Describe the hierarchy of the Java
Collection Framework starting from the Collection interface. ? ####
Q.2 Explain the difference between Collection and Collections in Java Collection
Framework ?
Q. 3 Explain the difference between ArrayList and LinkedList and some common
operations (add, remove, get) with code example . ? ###
Q. 4 Explain the differences between HashSet, LinkedHashSet, and TreeSet. With
code example ? ####
Q. 5 What is the Map interface, and how is it different from Collection?
Q.6 Explain the differences between HashMap, LinkedHashMap, TreeMap, and
Hashtable with code example .? ####
Q.7 Explain the difference between Comparable and Comparator., and how is it
used for sorting? ####
Q.8 How does a Deque differ from a Queue ? Write a Java program to demonstrate
the use of a PriorityQueue ?
Q.9 What is a Stack, and how does it extend Vector. Explain in detail with code
example. ?
Q. 10 What is the Properties class, and how is it used in Java? Write a Java
program to read and write properties from properties file. ?###
Assignment-5
Object Oriented Programming with Java
Q 1. What is the Spring Framework and what are its main features ?####
Q 2. Explain the concept of Dependency Injection (DI) and their types in
Spring.####
Q 3. What is Aspect-Oriented Programming (AOP) and how is it used in Spring?
Q 4. What is Inversion of Control (IoC) and how does it relate to Dependency
Injection?###
Q 5. What are the different bean scopes available in Spring?###
Q 6. What is autowiring in Spring and how does it work?
Q 7. How do the @Service, @Repository, and @Controller annotations
differ from @Component?
Q 8. How does annotation-based configuration differ from XML-based
configuration ?##
Q 9. How do you specify dependencies in a Maven pom.xml file for a Spring Boot
project?
Q 10. How do you use different logging frameworks (e.g., Logback, Log4j2) with
Spring Boot?
Q 11. What is a RESTful web service and How do you create a simple RESTful web
service using Spring Boot?####
Q 12. What are the default logging levels provided by Spring Boot?