Shriansh Kumar has Published 175 Articles

Interesting interview question on hashCode and equals method

Shriansh Kumar

Shriansh Kumar

Updated on 17-Aug-2023 10:27:15

330 Views

One of the most interesting interview questions that I have encountered in my Java programming career is about the hashCode and equals methods. Interviewers always check whether the candidate knows equals() and hasCode() methods as they are the most important yet most confusing methods of the Java Object class. Both ... Read More

Interesting and Cool Tricks in Java

Shriansh Kumar

Shriansh Kumar

Updated on 17-Aug-2023 09:59:56

108 Views

Java is a widely used programming language available nowadays. It serves to develop a variety of software including web and mobile applications. It is also preferable when it comes to developing a backend system. Java has made tremendous progress over the year that has changed the world. This is the ... Read More

Is there any equivalent to typedef of C/C++ in Java?

Shriansh Kumar

Shriansh Kumar

Updated on 17-Aug-2023 09:57:11

260 Views

We can find many similarities between Java and C/C++ programming languages in terms of syntaxes and features. But, there are several functionalities that have been omitted from Java like 'typedef'. If someone coming from a C/C++ background, must have heard the 'typedef' keyword, and often wonders, is there any equivalent ... Read More

Java @Target Annotations

Shriansh Kumar

Shriansh Kumar

Updated on 17-Aug-2023 09:50:39

701 Views

When we start learning Java, we often wonder about symbols like @override and @inherited written within the code blocks. They are a special kind of tag termed as Annotations that can be applied to classes, methods, fields, parameters, and other elements of the code. The @Target annotation is one of ... Read More

Iterate Over Unmodifiable Collection in Java

Shriansh Kumar

Shriansh Kumar

Updated on 17-Aug-2023 09:49:19

162 Views

Being a programmer we must have developed an application that performs CRUD operations. Here, the term CRUD means Create, Read, Update and delete. The collection on which these operations can be performed is called as modifiable collection. However, there is a way to make a collection unmodifiable so that one ... Read More

What is Iterable Interface in Java?

Shriansh Kumar

Shriansh Kumar

Updated on 17-Aug-2023 09:47:54

327 Views

In simple words, the iterable interface is a common interface that allows us to iterate over a collection of objects. It was first introduced with the release of JDK 1.5 and made available in 'java.lang' package. The Java Collection Framework extends this interface, hence all the classes available in this ... Read More

What is Interface Naming Conflicts in Java?

Shriansh Kumar

Shriansh Kumar

Updated on 17-Aug-2023 09:41:48

156 Views

In Java, interfaces serve two purposes pure abstraction and multiple inheritance. Generally, an interface consists of abstract methods and variables that define the behavior which a class can implement. If we create two interfaces that contain methods and variables with the same name, then interface naming conflicts may arise. However, ... Read More

Is there any difference between int[] a and int a[] in Java?

Shriansh Kumar

Shriansh Kumar

Updated on 17-Aug-2023 09:39:59

204 Views

Array is a linear data structure that is used to store a group of elements with similar datatypes. It stores data in a sequential manner. Once we create an array we can't change its size i.e. it is of fixed length. There are various ways to create an array named ... Read More

Intermediate Methods of Stream in Java

Shriansh Kumar

Shriansh Kumar

Updated on 17-Aug-2023 09:37:00

363 Views

In Java, the streams allow us to perform the functional operations on the specified element. It simply channelizes the elements of source such as arrays, files and classes of collection framework, through various built-in methods to return the result. These built-in methods could be intermediate or terminal. In this article, ... Read More

Difference Between Spring DAO vs Spring ORM vs Spring JDBC

Shriansh Kumar

Shriansh Kumar

Updated on 17-Aug-2023 09:28:10

397 Views

The given three terms Spring DAO, Spring ORM and Spring JDBC, are related to Data Access in Spring Framework. This framework was developed in June 2003 by Rod Johnson and with its release, it became very famous among Java developers because of its comprehensive set of tools and features for ... Read More

1 2 3 4 5 ... 18 Next
Advertisements