
Data Structure
Networking
RDBMS
Operating System
Java
MS Excel
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who

Writing clean code… when the bugs aren’t looking.
About
Developer by passion, debugger by instinct. Forever building, occasionally breaking, constantly evolving.
Aishwarya Naglot has Published 180 Articles

Aishwarya Naglot
7K+ Views
A constructor is a special method in Java that is used to initialize objects. It gets called when an instance of a class is created. The constructor has the same name as the class and does not have a return type. The question is whether a constructor can be declared ... Read More

Aishwarya Naglot
3K+ Views
TreeMap is based on the Red-Black tree structure, which is a It is a part of the Java Collections Framework. It is a sorted map and maintains the order of its keys. Its order depends on the natural ordering of the keys or by a Comparator.Since the TreeMap is not ... Read More

Aishwarya Naglot
3K+ Views
The HashSet class is a part of the Java Collections Framework, and it implements the Set interface. It is a collection of unique individual elements. It internally uses a hash table; therefore, the iteration order of elements is not guaranteed. Our task is to iterate through the elements of a HashSet ... Read More

Aishwarya Naglot
7K+ Views
ArrayList is a part of the Java Collections Framework. It is used to store elements in a dynamic array that can grow as needed. Unlike arrays, ArrayLists can change their size dynamically, which makes them easier for storing collections of objects without fixing the size at the time of creation. ... Read More

Aishwarya Naglot
418 Views
LinkedHashSet is a part of Java's Collection Framework. It is a type of Set that keeps the order of elements the same as they were added. It uses a combination of a hash table and a linked list to store elements.Our task is to traverse/iterate through the elements of a ... Read More

Aishwarya Naglot
1K+ Views
HashSet is a class in Java that implements the Set interface. It is used for storing unique elements. Our task is to check if a HashSet contains another collection in Java. Let's look at some scenarios to understand the problem better: Scenario 1 Input: {1, 2, 3, 4, 5} Collection ... Read More

Aishwarya Naglot
570 Views
LinkedHashMap is a class in Java that implements the Map interface. It uses a doubly linked list to maintain the insertion order of elements. So, when we loop through a LinkedHashMap, the elements will be returned in the order we had inserted them. The given task is to check if ... Read More

Aishwarya Naglot
618 Views
LinkedHashMap is a data structure in Java that is part of the Java Collections Framework. It is very similar to HashMap.It stores key-value pairs, where each key is unique, and it allows null values, but allows only one null key. The main difference is that the LinkedHashMap returns the elements ... Read More

Aishwarya Naglot
730 Views
TreeSet is a class in Java that implements the Set interface. It stores unique values in a sorted order. It is similar to HashSet, but the difference is that TreeSet stores elements in a sorted manner, while HashSet does not guarantee any order. Our task is to check if a ... Read More

Aishwarya Naglot
532 Views
HashSet in Java implements the Set interface, which belongs to the Java Collections Framework and is a part of the java.util package. It stores unique elements, which means we cannot store any duplicate (appearing more than once) values in a HashSet. The given task is to add all the elements ... Read More