Java Interview Questions and Answers

Java/J2ee interview Questions and Answers

  • Home
  • Java Basics
  • Collection
  • Data Structure
  • Thread
  • J2EE
  • Hibernate
  • Design Patterns
  • SQL Query
  • Hygieia
  • Coding
  • JavaScript

Collection

Collection Hierarchy in Java

Why Map interface doesn't extend Collection interface? 

Why set interface doesn't allows duplicates in Java?


Why TreeSet does not allow null value in Java?

UnsupportedOperationException when adding or removing element to a Collection in java

How HashMap works internally in Java? 

Internal Implementation of TreeMap in Java  

Internal implementation of ArrayList in Java  

Internal Implementation of LinkedList in Java


Difference between HashSet and TreeSet in Java

Difference between fail-safe and fail-fast iterator in Java

Java Program to Reverse a Linked List using Recursion and Loops 


Difference between HashMap and Hashtable in collection in Java  

How to Remove duplicates from ArrayList in Java

How to iterate the TreeMap in reverse order in Java 

Example to sort keys of TreeMap using Comparator with Custom Object  

Java Program to Count Occurrence of Word in a Sentence  

Collection Related Interview Questions and Answers in Java(List,Map & Set)
Email ThisBlogThis!Share to TwitterShare to FacebookShare to Pinterest

No comments:

Post a comment

Home
Subscribe to: Posts (Atom)

Popular Posts

  • Spring boot with JSP CRUD example
  • Difference between Loose Coupling and Tight Coupling in Java With Examples.
  • Transaction Management in Spring
  • Advantages of Spring JdbcTemplate over JDBC API
  • What is IOC Container in Spring? Difference between BeanFactory and ApplicationContext

About Me

Anil Nivargi
View my complete profile

Featured post

Difference between NoClassDefFoundError and ClassNotFoundException in Java

        Both NoClassDefFoundError and ClassNotFoundException occurs when particular class is not found at run time.They related to java c...

Blog archive

  • ▼  2020 (3)
    • ▼  October (1)
      • Examples of anyMatch(), allMatch() and noneMatch()...
    • ►  June (1)
    • ►  April (1)
  • ►  2019 (30)
    • ►  October (5)
    • ►  September (6)
    • ►  August (1)
    • ►  July (1)
    • ►  June (3)
    • ►  May (6)
    • ►  April (1)
    • ►  March (1)
    • ►  February (1)
    • ►  January (5)
  • ►  2018 (39)
    • ►  December (4)
    • ►  November (4)
    • ►  October (1)
    • ►  September (2)
    • ►  August (3)
    • ►  July (5)
    • ►  June (2)
    • ►  May (1)
    • ►  April (1)
    • ►  March (6)
    • ►  February (4)
    • ►  January (6)
  • ►  2017 (25)
    • ►  December (6)
    • ►  November (5)
    • ►  October (1)
    • ►  September (7)
    • ►  August (4)
    • ►  April (1)
    • ►  February (1)
  • ►  2016 (5)
    • ►  September (1)
    • ►  July (1)
    • ►  June (1)
    • ►  March (1)
    • ►  January (1)
  • ►  2015 (10)
    • ►  October (3)
    • ►  August (1)
    • ►  July (1)
    • ►  April (1)
    • ►  March (2)
    • ►  February (1)
    • ►  January (1)
  • ►  2014 (31)
    • ►  December (1)
    • ►  November (1)
    • ►  August (1)
    • ►  July (2)
    • ►  June (24)
    • ►  May (2)

Follow by Email

Total Pageviews

Popular Posts

  • Spring boot with JSP CRUD example
           In previous post, we discussed the list of Spring boot starters and also discussed the how to add starter into pom.xml....
  • Difference between Loose Coupling and Tight Coupling in Java With Examples.
           First to understand what is Loose coupling and Tight coupling and also to know the  advantage of loose coupling.              In ...
  • Transaction Management in Spring
              In previous post, explained the  CRUD operation of Spring with Hibernate , this article we can discuss about Spring Transaction ...
  • Advantages of Spring JdbcTemplate over JDBC API
           Spring JdbcTemplate is a powerful mechanism to connect to the database and execute SQL queries. It internally uses JDBC API, but eli...
  • What is IOC Container in Spring? Difference between BeanFactory and ApplicationContext
           The Spring IOC Container is a core of the Spring Framework, It will create the objects, wire them together, configure and manage c...
  • Factory Design Pattern in Java
               Factory pattern is one of most used design pattern in Java. This type of design pattern comes under Creational Design Pattern ...
  • Internal Implementation of TreeMap in Java
          We learned the internal working of HashMap in post of How HashMap works internally.    In this post, we can discuss about the interna...
  • Internal Implementation of LinkedList in Java
          In Previous post, discussed about the internal working of ArrayList.   In this post, we can discuss the internal working of LinkedL...
  • HTTP Status Codes
        When browser requests a service from web server, it will return some status code. I have listed all HTTP Status codes as below, 1xx ...
  • Spring MVC workflow with example
        In the current topic, we will learn Spring MVC architecture and sample example. Below is the architecture of Spring MVC with explana...
copyright @adntechnology. Powered by Blogger.