Postman Tutorial Part 7 – Difference Between ‘Accept’ and ‘Content-Type’ HTTP Headers

"Accept" and "Content-Type" are HTTP Headers which control input and output formats. "Accept" is a request header and "Content-Type" is both request and response header. Let's see the difference between these headers: Accept: Let's understand it using a real time example. We must have submitted final year projects in our college and there were a … Continue reading Postman Tutorial Part 7 – Difference Between ‘Accept’ and ‘Content-Type’ HTTP Headers

Integration of Apache POI Java Library in a Java Project – Direct Download & Using Maven or Gradle

Hello Guys, We have seen Introduction of Apache POI in previous post. In this post we will see below topics: Integration of apache POI libraries using Direct downloadIntegration of apache POI libraries using Build automation tool MavenIntegration of apache POI libraries using Build automation tool Gradle ( This we will see in a separate post.) … Continue reading Integration of Apache POI Java Library in a Java Project – Direct Download & Using Maven or Gradle

Introduction To Apache POI – The Java API To Read Write Microsoft Documents – Excel

Apache POI provides pure Java libraries for reading and writing files in Microsoft Office formats, such as Word, PowerPoint and Excel. It has different components for reading and writing different Microsoft Office files: POIFS for OLE 2 DocumentsHSSF and XSSF for Excel DocumentsHWPF and XWPF for Word DocumentsHSLF and XSLF for PowerPoint DocumentsHPSF for OLE 2 Document PropertiesHDGF and XDGF for Visio DocumentsHPBF … Continue reading Introduction To Apache POI – The Java API To Read Write Microsoft Documents – Excel

JVM , JRE & JDK – Understand & Differentiate in Simple Words

This is a frequently asked interview question of Java because people always gets confused with these terms and used interchangeably. I will try to explain these terms in easy words. There are three stages for writing a code in any programming language - Development , Compilation and Execution. In Java programming language, there are three … Continue reading JVM , JRE & JDK – Understand & Differentiate in Simple Words

TestNG Tutorials 69 : Rerun Failed Test Method Using IRetryAnalyzer Interface – Implementing With Listener – IAnnotationTransformer

Hello Folks, We have already learnt about IRetryAnalyzer interface in previous post. We know why we use it and how can we use it. From previous post, you know that we can pass implemented class of IRetryAnalyzer as an value to attribute named "retryAnalyzer" at @Test annotation. You need to add it each and every @Test annotation … Continue reading TestNG Tutorials 69 : Rerun Failed Test Method Using IRetryAnalyzer Interface – Implementing With Listener – IAnnotationTransformer

TestNG Tutorials 68 : Rerun Failed Test Method Using IRetryAnalyzer Interface – Implement Using retryAnalyzer attribute in the @Test annotation

Hello Folks, TestNG provides a built in mechanism to re-run failed test case for N times (Ideally) instantly using IRetryAnalyzer interface. It means that if a test method fails, we can rerun it for N times or until it is passed during run. Let's see this concept in more details: IRetryAnalyzer Interface: IRetryAnalyzer is an interface … Continue reading TestNG Tutorials 68 : Rerun Failed Test Method Using IRetryAnalyzer Interface – Implement Using retryAnalyzer attribute in the @Test annotation

Frequently Asked Java Program 28: Java Program to Find if Given Number Is a Perfect Number

Perfect Number: A Perfect number is a positive integer that is equal to the sum of its proper divisors excluding the number itself. For Example: Take Number 6. Its divisors are 1, 2 , 3 and 6. When we add all divisors except 6 ( as it is number itself) (i.e. 1+2+3= 6), it is equal to actual … Continue reading Frequently Asked Java Program 28: Java Program to Find if Given Number Is a Perfect Number

Frequently Asked Java Program 27: Java Program to Find Occurrence of Any Char in a Given String Without Iterating

Problem Statement: Find occurrence of given char  (Ignore case)  in given string without iterating through string. Input - Make Selenium Easy Char - 'M' Output- Occurrence of M is 2. Problem Solution: We need to solve this problem without iterating through string in search of character. Its simple. Logic step by step: FInd the initial length … Continue reading Frequently Asked Java Program 27: Java Program to Find Occurrence of Any Char in a Given String Without Iterating

Frequently Asked Java Program 26: Java Program to Find Occurrence of Each Char in a Given String Without Using Collection

Problem Statement: Write a program to print occurrence of each character in given string without using Collection. Example:- Please enter the string to find occurrence of each char: Make Selenium Easy You entered: Make Selenium Easy Occurrence of M : 2 Occurrence of A : 2 Occurrence of K : 1 Occurrence of E : … Continue reading Frequently Asked Java Program 26: Java Program to Find Occurrence of Each Char in a Given String Without Using Collection

TestNG Tutorials 67 : Difference Between @Ignore & enabled Attribute of @Test Method in TestNG

Hello Folks, In last post, we have learnt about new annotation of TestNG , named @Ignore which is used to ignore @Test annotated methods at different levels i.e. Method, Class and Package. We have another attribute of Test annotation named "enabled" which is also used to serve the same purpose. So what are the differences … Continue reading TestNG Tutorials 67 : Difference Between @Ignore & enabled Attribute of @Test Method in TestNG