Java

JSP Exception Handling - JSP Error Page — step-by-step Programming tutorial on Progressive Robot

JSP Exception Handling – JSP Error Page

URL: https://www.progressiverobot.com/jsp-exception-handling-jsp-error-page/ Exception handling in JSP is done by JSP exception pages. Exception Handling in JSP Sometime back I wrote a post about [Servlet Exception Handling](/community/tutorials/servlet-exception-and-error-handling-example-tutorial "Servlet Exception and Error Handling Example Tutorial") and why do we need it. Same explanation is also applicable for JSP pages also and that's why Java EE provides a […]

Read more
Java LinkedList - LinkedList In Java — step-by-step Programming tutorial on Progressive Robot

Java LinkedList – LinkedList In Java

URL: https://www.progressiverobot.com/java-linkedlist-linkedlist-java/ Java LinkedList is an implementation of the List and Deque interfaces. It is one of the frequently used List implementation class. It extends AbstractSequentialList and implements List and Deque interfaces. It is an ordered collection and supports duplicate elements. It stores elements in Insertion order. It supports adding null elements. It supports index […]

Read more
Java Lock Example - ReentrantLock — step-by-step Programming tutorial on Progressive Robot

Java Lock Example – ReentrantLock

URL: https://www.progressiverobot.com/java-lock-example-reentrantlock/ Welcome to Java Lock example tutorial. Usually when working with multi-threaded environment, we use [synchronized for thread safety](/community/tutorials/thread-safety-in-java). Java Lock ![java lock, java lock example, ReentrantLock in Java, java locks](images/java-lock-example-reentrantlock-section-1.png) Most of the times, synchronized keyword is the way to go but it has some shortcomings that lead the way to inclusion of […]

Read more
Java 9 Modules — step-by-step Programming tutorial on Progressive Robot

Java 9 Modules

URL: https://www.progressiverobot.com/java-9-modules/ Java 9 modules are one of the biggest change in the structure of java. Here I am going to give a brief high level introduction about "Java 9 Module System". Java 9 Modules We will look into following topics about java 9 modules system. Introduction Java SE 9: Jigsaw Project Problems of Current […]

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

Convert char to String in Java

Sometimes we have to convert char to String in java program. Here we will look into different methods you can convert character to string in java. We will also learn how to convert char array to String using different methods. Convert char to String Java ![convert char to string java](images/convert-char-to-string-java-section-1.png) Here is a simple program […]

Read more
SQL Injection in Java and How to Easily Prevent it — step-by-step Programming tutorial on Progressive Robot

SQL Injection in Java and How to Easily Prevent it

URL: https://www.progressiverobot.com/sql-injection-in-java/ What is SQL Injection? SQL Injection is one of the top 10 web application vulnerabilities. In simple words, SQL Injection means injecting/inserting SQL code in a query via user-inputted data. It can occur in any applications using relational databases like Oracle, MySQL, PostgreSQL and SQL Server. To perform SQL Injection, a malicious user […]

Read more
How To Install Apache Tomcat 9 on Ubuntu 18.04 — step-by-step Linux tutorial on Progressive Robot

How To Install Apache Tomcat 9 on Ubuntu 18.04

Apache Tomcat is a web server and servlet container that is used to serve Java applications. Tomcat is an open source implementation of the Java Servlet and JavaServer Pages technologies, released by the Apache Software Foundation. In this tutorial, you will install and configure Tomcat 9 on your Ubuntu 18.04 server.

Read more
Java create new file — step-by-step Programming tutorial on Progressive Robot

Java create new file

URL: https://www.progressiverobot.com/java-create-new-file/ Creating a file is a very common IO operation. Today we will look into different ways to create a file in java. Java create file ![java create file, java create new file](images/java-create-new-file-section-1.png) There are three popular methods to create file in java. Let's look at them one by one. ### File.createNewFile() java.io.File class […]

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

Flyweight Design Pattern in Java

Today we will look into Flyweight design pattern. Flyweight Design Pattern According to GoF, flyweight design pattern intent is: > Use sharing to support large numbers of fine-grained objects efficiently Flyweight design pattern is a Structural design pattern like [Facade pattern](/community/tutorials/facade-design-pattern-in-java "Facade Pattern in Java – Example Tutorial"), [Adapter Pattern](/community/tutorials/adapter-design-pattern-java "Adapter Design Pattern in Java […]

Read more
Java continue statement — step-by-step Programming tutorial on Progressive Robot

Java continue statement

URL: https://www.progressiverobot.com/java-continue-statement/ Java continue statement is used to skip the current iteration of a loop. Continue statement in java can be used with for, while and do-while loop. Java continue statement When continue statement is used in a nested loop, it only skips the current execution of the inner loop. Java continue statement can be […]

Read more
CHAT