Article Categories
- All Categories
-
Data Structure
-
Networking
-
RDBMS
-
Operating System
-
Java
-
MS Excel
-
iOS
-
HTML
-
CSS
-
Android
-
Python
-
C Programming
-
C++
-
C#
-
MongoDB
-
MySQL
-
Javascript
-
PHP
-
Economics & Finance
Articles by Himanshu shriv
42 articles
Difference between green and native thread
Green threads are threads that are created and scheduled by a virtual machine or runtime environment without using the operating system's threading libraries. They are called "green" after the original codename for the Java thread project developed by Sun Microsystems. Native threads are threads that are created and scheduled directly by the operating system kernel. They utilize the OS's built-in threading support and can take full advantage of system resources including multiple processors. How They Work Green threads operate at the application level, where the virtual machine or runtime manages all thread scheduling. The OS sees only ...
Read MoreDifference between Hibernate and Eclipse link
Hibernate and EclipseLink are both Object-Relational Mapping (ORM) frameworks that implement the Java Persistence API (JPA) specification. While they serve the same fundamental purpose of mapping Java objects to relational databases, they have distinct differences in implementation and features. What is Hibernate? Hibernate is the most popular JPA implementation, developed by Red Hat. It provides robust ORM capabilities and includes additional features beyond the standard JPA specification. Hibernate has been widely adopted in enterprise applications due to its maturity and extensive documentation. What is EclipseLink? EclipseLink is an open-source JPA implementation developed by the Eclipse Foundation. ...
Read MoreDifference between hierarchical and network database model in SQL
Hierarchical Data Model In the Hierarchical data model, the relationship between the table and data is defined in parent-child structure. In this structure, data is arranged in the form of a tree structure. This model supports one-to-one and one-to-many relationships. Network Model The Network model arranges data in a graph structure. In this model, each parent can have multiple children, and children can also have multiple parents. This model supports many-to-many relationships as well. Comparison Table ...
Read MoreDifference between correlated and non-collreated subqueries in SQL
SQL query is used to fetch data from the database. In some of the scenario you may need some perquisite data to call subsequent SQL query to fetch data from a table so instead of writing two seperate query we can write SQL query within the query. Therefore subQuery is a way to combine or join them in single query. Subqurey can have two types −Correlated subquery - In correlated subquery, inner query is dependent on the outer query. Outer query needs to be executed before inner queryNon-Correlated subquery - In non-correlated query inner query does not dependent on the outer ...
Read MoreDifference between default and static interface method in Java 8.
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 any object. Every instance of the class shares its static methods.Static method in interface are part of the interface class can’t implement or override it whereas class can override the default method.Sr. No.KeyStatic Interface MethodDefault Method1BasicIt is a static method which belongs to the interface only. We can write implementation ...
Read MoreDifference between compile-time polymorphism and runtime polymorphism
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 the example of run-time polymorphism.Sr. No.KeyCompile-time polymorphismRuntime polymorphism1BasicCompile time polymorphism means binding is occuring at compile timeR un time polymorphism where at run time we came to know which method is going to invoke2Static/DynamicBindingIt can be achieved through static bindingIt can be achieved through dynamic binding4.InheritanceInheritance is not involvedInheritance is ...
Read MoreDifference between Oracle 11g and Oracle 12c
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 etc.Sr. No.KeyOracle 11gOracle 12c1BasicIt was released in released in 2008 and has no pluggable databaseIt is High performance RDbMS which is released in 2014. It is pluggable database.2Identity columnWe can't set primary key to raise automaticallyWe can set primary key to rise automatically.3JSON typeWe can't store Json directly to the ...
Read MoreDifference between Ant and Maven.
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 to do in XML files therefore it can't be used in different types of project setup.Maven is framework and it can also act as a dependency management tool. It is declarative build tool so everything we can define in the pom.xml. Sr. No.KeyMavenAnt1BasicMaven is a build automation framework based on the ...
Read MoreDifferences between String and StringBuffer
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 used to do operation on string object such as reverse of string, concating string and etc. We can modify string without creating new object of the string. String buffer is also thread safe.Also, string concat + operator internally uses StringBuffer or StringBuilder class. Below are the differences.Sr. No.KeyStringStringBuffer1BasicString is an ...
Read MoreDifference between CountDownLatch and CyclicBarrier in Java Concurrency
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 threads to all wait for each other to reach a common barrier point.Sr. No.KeyCyclicBarrierCountDownLatch1BasicA synchronization aid that allows a set of threads to all wait for each other to reach a common barrier point.A synchronization aid that allows one or more threads to wait until a set of operations being ...
Read More