Himanshu shriv has Published 52 Articles

Difference between default and static interface method in Java 8.

Himanshu shriv

Himanshu shriv

Updated on 31-Oct-2023 03:22:25

21K+ Views

According to Oracle's Javadocs −Default methods enable you to add new functionality to the interfaces of your libraries and ensure binary compatibility with code written for older versions of those interfaces.A static method is a method that is associated with the class in which it is defined rather than with ... Read More

Difference between compile-time polymorphism and runtime polymorphism

Himanshu shriv

Himanshu shriv

Updated on 12-Sep-2023 09:54:51

29K+ Views

Polymorphism is one of the most important OOPs concepts. Its is a concept by which we can perform single task in multiple ways. There are two types of polymorphism one is Compile-time polymorphism and another is run-time polymorphism.Method overloading is the example of compile time polymorphism and  method overriding is ... Read More

Difference between HashTable and ConcurrentHashMap in Java

Himanshu shriv

Himanshu shriv

Updated on 29-Jul-2021 14:33:14

6K+ Views

Concurrent Hashmap is a class that was introduced in jdk1.5.  Concurrent hash map applies locks only at bucket level called fragment while adding or updating the map. So, a concurrent hash map allows concurrent read and write operations to the map. HashTable is a thread-safe legacy class introduced in the Jdk1.1. ... Read More

Difference between Oracle 11g and Oracle 12c

Himanshu shriv

Himanshu shriv

Updated on 09-Sep-2020 12:10:22

4K+ Views

Oracle 12c is just upgraded version of the Oracle 11g with some new features like cloud support and pluggable database, kind of like master slave architecture. With the Oracle 12 c, you can plug your database to cloud anytime. It has multiple new features like JSON support, multitenant architecture and ... Read More

Difference between Ant and Maven.

Himanshu shriv

Himanshu shriv

Updated on 09-Sep-2020 12:08:29

2K+ Views

Ant and maven both are build tools.They both can be used for compile, pulling dependence from repository and for creating war or ear files. Both are provided by the Apache.Ant is a tool and it doesn't have formal conventions. If you are using Ant then you have to tell what ... Read More

Difference between Hibernate and Eclipse link

Himanshu shriv

Himanshu shriv

Updated on 09-Sep-2020 12:06:39

1K+ Views

Hibernate and Eclipse link both are object relational mapping tool. They both are the implementation of JPA.Hibernate is very popular implementation of JPA built by Red hat. It also has some extra features that JPA does not provide.Eclipse is an open source implementation of JPA built by Eclipse foundation. It ... Read More

Differences between String and StringBuffer

Himanshu shriv

Himanshu shriv

Updated on 09-Sep-2020 12:05:04

11K+ Views

String is an immutable class and its object can’t be modified after it is created but definitely reference other objects. They are very useful in multithreading environment because multiple threads can’t change the state of the object so immutable objects are thread safe.String buffer is mutable classes which can be ... Read More

Difference between mutable and immutable object

Himanshu shriv

Himanshu shriv

Updated on 09-Sep-2020 11:58:34

3K+ Views

In Java, state of the immutable object can’t be modified after it is created b ut definitely reference other objects. They are very useful in multithreading environment because multiple threads can’t change the state of the object so immutable objects are thread safe. Immutable objects are very helpful to avoid ... Read More

Difference between CountDownLatch and CyclicBarrier in Java Concurrency

Himanshu shriv

Himanshu shriv

Updated on 09-Sep-2020 11:55:46

1K+ Views

CountDownLatch and CyclicBarrier both used in multithreading environment and they both are part of.As per Java Doc −CountDownLatch − A synchronization aid that allows one or more threads to wait until a set of operations being performed in other threads completes.CyclicBarrier − A synchronization aid that allows a set of ... Read More

Difference between Docker Swarm and Kubernetes

Himanshu shriv

Himanshu shriv

Updated on 09-Sep-2020 11:49:18

287 Views

Docker Swarm and Kubernetes both can be used for similar purpose. They both are container orchestration tool.Docker Swarm is a tool used for clustering and scheduling Docker containers. We can easily establish and manage a cluster of Docker nodes under a single virtual system.Kubernetes is also container orchestration tool which ... Read More

Advertisements