Articles on Trending Technologies

Technical articles with clear explanations and examples

How to generate test report in IntelliJ IDE?

Ashish Anand
Ashish Anand
Updated on 17-Aug-2023 2K+ Views

TestNG allows to run the test suites from IntelliJ IDE as well as command line. When user run the testing.xml either from IDE or command line, TestNG generates a default report. It saves all reports and respective html files in Project −> test−output folder. If folder is not present, TestNG creates the folder. Enable the Report Generation While running the testing.xml from IDE, user has to enable the default reports generation at Add Configuration −> Listeners tab. Following screenshot shows how to enable default report generation in IntelliJ. If user wants to generate report at ...

Read More

Interesting interview question on hashCode and equals method

Shriansh Kumar
Shriansh Kumar
Updated on 17-Aug-2023 1K+ 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 methods are used to check the equality of two or more objects. This article aims to provide some interesting interview questions related to hashCode() and equals() methods that will improve one's knowledge as well as skills. Java Interview Questions on hashCode() and equals() method When an interviewer starts questioning about ...

Read More

Interesting and Cool Tricks in Java

Shriansh Kumar
Shriansh Kumar
Updated on 17-Aug-2023 358 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 reason why the demand for Java developers is still in the market. Being a Java developer, one might be interested in learning some cool tricks that can make the code more elegant, efficient and fun. In this article, we are going to share some useful tricks that we can use ...

Read More

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

Shriansh Kumar
Shriansh Kumar
Updated on 17-Aug-2023 1K+ 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 to typedef in Java? In simple words, Java does not provide a direct equivalent to typedef. The creators of Java replaced this feature with classes. In fact, a class can do even more than a typedef can do. Replacement to typedef of C/C++ in Java? Before exploring the ...

Read More

What is Iterable Interface in Java?

Shriansh Kumar
Shriansh Kumar
Updated on 17-Aug-2023 2K+ 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 collection framework by default implement the iterable interface. In other words, the classes of collection framework such as ArrayList, TreeSet, TreeMap and HashMap are iterable. This article aims to explain the iterable interface of Java along with its use case. Iterable Interface in Java The only use case exhibited ...

Read More

What is Interface Naming Conflicts in Java?

Shriansh Kumar
Shriansh Kumar
Updated on 17-Aug-2023 538 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, it is not the only scenario that can cause this conflict, we are going to explore all the possible situations causing interface naming conflicts. Interface Naming Conflicts in Java Before heading to the interface naming conflicts, it is necessary to understand the abstract methods and how to create interfaces in ...

Read More

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

Shriansh Kumar
Shriansh Kumar
Updated on 17-Aug-2023 919 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 'a[]' of type integer including 'int[] a' and 'int a[]'. But, the question that pops up here is that is there any difference between these two syntaxes and which one is preferable. Stick with us till the end of this article to find out the answer to these questions. How ...

Read More

Difference Between Spring DAO vs Spring ORM vs Spring JDBC

Shriansh Kumar
Shriansh Kumar
Updated on 17-Aug-2023 1K+ 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 building enterprise applications. Although these terms serve the same purpose there exist a few distinctions between them. In this article, we are going to discuss the difference between Spring DAO, Spring ORM and Spring JDBC. Spring DAO vs Spring ORM vs Spring JDBC In this section, we will introduce the ...

Read More

Difference between YAML(.yml) and .properties file in Java SpringBoot

Shriansh Kumar
Shriansh Kumar
Updated on 17-Aug-2023 2K+ Views

Infrequently a SpringBoot developer may need an external configuration to define features for SpringBoot applications so that we can use the same application code in different environments. For this purpose, we can use YAML and .properties files that are used to store the required features. Despite similar functionality, there are a few distinctions between them in terms of syntax and additional features. In this article, we are going to explore what are the main differences that exist between .yml and .properties files. YAML vs Properties Files In this section, we will introduce the YAML and properties files and later, we ...

Read More

Rufus Alternatives

Shirjeel Yunus
Shirjeel Yunus
Updated on 16-Aug-2023 2K+ Views

What is Rufus? Rufus is a software which can be used to create bootable USB Drives. The software is available for free and can be used to install Windows 10. The app can also be used to create bootable USB drives on different operating systems. The app can also be used to format USB drives. The app can be downloaded on the system and used directly without any requirement of installation. It supports many file systems so that users do not face any issues. Price Plans of Rufus Rufus is an open-source app and is available for free. Why Rufus ...

Read More
Showing 34601–34610 of 61,297 articles
Advertisements