Java

50 Servlet Interview Questions and Answers — step-by-step Programming tutorial on Progressive Robot

50 Servlet Interview Questions and Answers

URL: https://www.progressiverobot.com/servlet-interview-questions-and-answers/ Servlets is a very important topic of Java EE and all of the web applications frameworks such as Spring and Struts is built on top of it. This makes servlet interview questions a hot topic in interviews. Here I am providing a list of 50 servlet interview questions with answers to help you […]

Read more
Java QR Code Generator - zxing example — step-by-step Programming tutorial on Progressive Robot

Java QR Code Generator – zxing example

URL: https://www.progressiverobot.com/java-qr-code-generator-zxing-example/ Today we will look into the Java QR code generator program. If you are tech and gadget savvy, then you must be aware of the QR code. You will find it everywhere these days – in blogs, websites, and even in some public places. This is very popular in mobile apps, where you […]

Read more
Jersey Java Tutorial — step-by-step Programming tutorial on Progressive Robot

Jersey Java Tutorial

URL: https://www.progressiverobot.com/jersey-java-tutorial/ Welcome to Java Jersey Tutorial. Recently I started working on a Restful web service project using the JAX-RS Jersey framework. What is Java Jersey Framework? Java Jersey project tracks the JAX-RS API, which is used to create Restful web services in Java. ![jersey java, jersey tutorial, JAX-RS tutorial](images/jersey-java-tutorial-section-1.png) 1. Who should use this […]

Read more
JSTL Tutorial, JSTL Tags Example — step-by-step Programming tutorial on Progressive Robot

JSTL Tutorial, JSTL Tags Example

URL: https://www.progressiverobot.com/jstl-tutorial-jstl-tags-example/ JSTL stands for JSP Standard Tag Library. JSTL is the standard tag library that provides tags to control the JSP page behavior. JSTL tags can be used for iteration and control statements, internationalization, SQL etc. We will look into JSTL Tags in detail in this JSTL tutorial. Earlier we saw how we can […]

Read more
Java Download File from URL — step-by-step Programming tutorial on Progressive Robot

Java Download File from URL

URL: https://www.progressiverobot.com/java-download-file-url/ Today we will learn how to download a file from URL in java. We can use java.net.URL openStream() method to download file from URL in java program. We can use Java NIO Channels or Java IO InputStream to read data from the URL open stream and then save it to file. Java Download […]

Read more
Iterator Design Pattern in Java — step-by-step Programming tutorial on Progressive Robot

Iterator Design Pattern in Java

URL: https://www.progressiverobot.com/iterator-design-pattern-java/ Iterator design pattern in one of the behavioral pattern. Iterator pattern is used to provide a standard way to traverse through a group of Objects. Iterator pattern is widely used in [Java Collection Framework](/community/tutorials/collections-in-java-tutorial "Java Collections Framework Tutorial"). Iterator interface provides methods for traversing through a collection. Iterator Design Pattern ![iterator design pattern](images/iterator-design-pattern-java-section-1.png) […]

Read more
Java Stream distinct() Function to Remove Duplicates — step-by-step Programming tutorial on Progressive Robot

Java Stream distinct() Function to Remove Duplicates

URL: https://www.progressiverobot.com/java-stream-distinct-function/ Java Stream distinct() method returns a new stream of distinct elements. It's useful in removing duplicate elements from the collection before processing them. Java Stream distinct() Method The elements are compared using the [equals() method](/community/tutorials/java-equals-hashcode). So it's necessary that the [stream](/community/tutorials/java-8-stream) elements have proper implementation of equals() method. If the stream is ordered, […]

Read more
java.util.ConcurrentModificationException — step-by-step Programming tutorial on Progressive Robot

java.util.ConcurrentModificationException

Java Collection classes are fail-fast which means that if the Collection will be changed while some thread is traversing over it using iterator, the iterator.next() will throw ConcurrentModificationException. This situation can come in case of multithreaded as well as single threaded environment.

Read more
Java Convert String to double — step-by-step Programming tutorial on Progressive Robot

Java Convert String to double

URL: https://www.progressiverobot.com/java-convert-string-to-double/ Java String to double conversion can be done by many ways. Today we will look into some common ways to convert java string to double primitive data type or Double object. Note that since java supports autoboxing, double primitive type and Double object can be used interchangeably without any issues. Double d1 = […]

Read more
CHAT