What is RESTful WebService

RESTful web services are built to work best on the Web. Representational State Transfer (REST) is a stateless client-server architecture in which the web services are viewed as resources and can be identified by their URIs.   Representational State Transfer (REST) is an architectural style that specifies constraints, such as the uniform interface, that if applied … Continue reading What is RESTful WebService

How to Increment, Decrements Date in JAVA

In Java, we need to perform operations on Date like Add date in current date or Subtract date from Current Date. Sometimes we need to get the tomorrow date or yesterday date.   In Java, you can achieve the Date operation using two ways. First one is using Calendar (java.util.Calendar) class of JDK and another … Continue reading How to Increment, Decrements Date in JAVA

Can We Overload or Override Static Method in Java

One of the common Java interview question is, Can We Override or Overload the Static Functions in Java? The Answer is NO, We can’t Override the static function in Java. But we can Overload the Static Method in Java. Now the new question Now the new question raised by interviewer Why? Why you can’t override but overload … Continue reading Can We Overload or Override Static Method in Java

What is SOAP Web Service

SOAP provides the envelope for sending Web Services messages over the Internet. It is part of the set of standards specified by the W3C.   How to choose between SOAP Web Services and RESTful services? Choose SOAP: If you require asynchronous processing In your service operations are stateful If you need formal contract/Interfaces Choose RESTful Services: If … Continue reading What is SOAP Web Service

What is Data Driven Framework ?

Selenium Webdriver Data-Driven Framework is the framework where We read the test input values are from external data files (ODBC sources, CVS files, Excel files, and DAO objects). Load them into the variables in our script and use as per need.   Data Driven Framework allows you to run a test case multiple times with … Continue reading What is Data Driven Framework ?

How to count a number of words in given File in Java

To perform this first we need to read the file, You can refer how to read a file in Java. After that we need to keep the file content in a String and then count the number of words in that String.   To implement this scenario, You need to implement the method which will … Continue reading How to count a number of words in given File in Java

How to Write XLS and XLSX File in Java – Apach POI

Java doesn’t provide direct API to read and write Excel document, you have to rely on third party libraries. In the last article, We have seen How to read .xls or .xlsx file in java. To read and write XLS or XLSX file you can use JXL open source library or Apache POI library.   I … Continue reading How to Write XLS and XLSX File in Java – Apach POI

How to Read XLS and XLSX File in Java – Apach POI

Java doesn’t provide direct API to read and write Excel document, you have to rely on third party libraries. To read and write XLS or XLSX file you can use JXL open source library or Apache POI library.   I will suggest to Apache POI instead of JXL because JXL supports only .XLS format(produced by Microsoft … Continue reading How to Read XLS and XLSX File in Java – Apach POI

How to Compare Two Arrays in Java – Java Interview Question

Let’s see, How can you compare the Array in Java to verify,  If they are equal to each other or not. Please note you can’t compare a String array to an int array. You can compare the Array only if they have the same data type.   Compare Two Integer Array in Java To compare … Continue reading How to Compare Two Arrays in Java – Java Interview Question