Himanshu shriv has Published 51 Articles

Difference Between Constructor Injection and Setter Injection in Spring

Himanshu shriv

Himanshu shriv

Updated on 09-Sep-2020 08:49:37

18K+ Views

Dependency Injection is a practice to pass dependent object to other objects. Spring has two types of Dependency Injection :Constructor based Injection -When container call the constructor of the class. It should be used for mandatory dependencies.Let’s say Class X is tightly  dependent on Class Y then we should use ... Read More

Difference Between JDBC and Hibernate

Himanshu shriv

Himanshu shriv

Updated on 14-Jul-2020 09:24:01

4K+ Views

JDBC is acronym of Java database connectivity. It is used to connect your application to the database and transactions . It is an open source Java api.  Hibernate is also used for connect your application to database and to do database related transactions but with different approach. It has a ... Read More

Difference between Object level lock and Class level lock in Java

Himanshu shriv

Himanshu shriv

Updated on 21-Jan-2020 10:10:57

6K+ Views

In multithreading environment, two or more threads can access the shared resources simultaneously which can lead the inconsistent behavior of the system. Java uses concept of locks to restrict concurrent access of shared resources or objects. Locks can be applied at two levels −Object Level Locks − It can be ... Read More

Difference between Static binding and dynamic binding in Java

Himanshu shriv

Himanshu shriv

Updated on 21-Jan-2020 10:07:31

12K+ Views

Binding is a mechanism creating link between method call and method actual implementation. As per the polymorphism concept in Java , object can have many different forms. Object forms can be resolved at compile time and run time. If linking between method call  and method implementation is resolved at compile ... Read More

Difference between stored procedure and triggers in SQL

Himanshu shriv

Himanshu shriv

Updated on 21-Jan-2020 09:58:29

16K+ Views

Stored procedures are a pieces of the code in written in PL/SQL to do some specific task. Stored procedures can be invoked explicitly by the user. It's like a java program , it can take some input as a parameter then can do some processing and can return values.On the other ... Read More

Difference between correlated and non-collreated subqueries in SQL

Himanshu shriv

Himanshu shriv

Updated on 21-Jan-2020 09:56:58

7K+ Views

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 ... Read More

Difference between oracle golden gate and oracle active guard in the oracle

Himanshu shriv

Himanshu shriv

Updated on 21-Jan-2020 09:53:06

936 Views

Oracle golden gate and oracle active data guard is the data replication technologies. They both are used for data replication but with different strategy. As per the oracle docs −Oracle Active Data Guard provides the best data protection and availability for Oracle Database in the simplest most economical manner by maintaining ... Read More

Difference between logical and physical standby database in the oracle

Himanshu shriv

Himanshu shriv

Updated on 21-Jan-2020 09:49:10

982 Views

Logical standby and physical standby database in two different types of standby database. In case of any failure of primary database Oracle transfer data from primary database to the standby database. This approach helps us to recover data from standby database in case of any failure.Logical standby database is not ... Read More

Difference between hierarchical and network database model in SQL

Himanshu shriv

Himanshu shriv

Updated on 21-Jan-2020 09:47:19

8K+ Views

In Hierarchical data model, relationship between table and data is defined in parent child structure. In this structure data are arranged in the form of a tree structure. This model supports one-to-one and one-to-many relationships.On the other hand, network model arrange data in graph structure. In this model each parents can ... Read More

Difference between Inner and Outer join in SQL

Himanshu shriv

Himanshu shriv

Updated on 21-Jan-2020 09:41:05

1K+ Views

In Relational database tables are associated with each other and we used foreign key to maintain relationships between tables. We used join clause to retrieve data from associated tables. The join condition indicates how column in each table are matched against each other. There are two types of joins clause in ... Read More

Advertisements