Contributions

Article
get and set methods are basically used in Encapsulation. Encapsulation means hiding sensitive date from user. To hide sensitive data from user we have to declare class variables as private.
Article
recursion is a process where a method calls itself infinitely or endlessly.recursion makes a java code closely packed. Here’s an example on infinite recursive function.
Article
HashSet
HashSet stores only objects.
HashMap
HashMap stores elements in key and value pairs. That is each element has its corresponding key which is used for retrieval during iteration.
Article
Here’s the difference between abstract class and interface.an abstract class can have protected, private etc. as access modifiers for class members.
Article
Binary number is a number expressed or represented in 0 and 1. Hence binary numbers consists of 0’s and 1’s.
Article
Binary search is the process of searching key element from sorted array.
Article
java arraycopy copies an array from the specified source array, beginning at the specified position, to the specified position of the destination array.
Article
An instance of Random class is used to generate a stream of pseudorandom numbers. Instances of java.util.Random are not cryptographically secure.
Article
wrapper classes allow primitive data types a way to convert into object and vice-versa.
For example:
int a = 7; // using primitive datatype
Integer a = new Integer(7); // using wrapper class
Article
An immutable object in one that once the object is created its state or content cannot be modified.
For example: string is immutable in java.
Article
instanceof operator is used to check whether the object is an instance of specified type. Type can be a class or a subclass or an interface.
Article
Functional interface is one kind of an interface which has only one abstract method.
Article
Comparable interface is an interface used to compare objects of same type. It can be implemented by any custom class and is found in java.lang package.
Article
Multiple inheritance is one of the object oriented feature where a class or a sub class can inherit features from more than one parent class or super class.
Article
underlying data structure for HashSet is hashtable.
HashSet implements Set interface.
Hashset does not allow duplicate elements. If any duplicate object is added, then add() method returns “false” without adding any duplicate object.
Object are inserted based on their hash code.
Hashset does not maintain or preserve insertion order.
Article
TreeMap is a member of java collections framework.
TreeMap implements Map interface.
TreeMap maintain its entries in ascending order.
Treemap implementation in java: TreeMap is red black tree based NavigableMap implementation.
TreeMap doesn’t allow null key. However allow multiple null values.
Article
In this article you can learn preface to java virtual machine and architecture with detailed explanation.
Article
Today we are going to java treemap. Basically a treemap is a map. So a map is one where we support different kinds of operations like get, put, remove, getvalue etc.
Article
Hey there!!Welcome to flower brackets.In this post we are going to learn hashset java.hashset constructor hashset java example hashset example java hashset