Java

Matrix Programs in Java — step-by-step Programming tutorial on Progressive Robot

Matrix Programs in Java

URL: https://www.progressiverobot.com/matrix-programs-in-java/ A Matrix is a rectangular array. The elements are arranged in the rows and columns. In this tutorial, we will look at some matrix programs in Java. Graphical Representation of Matrix Matrix in Java We can implement a matrix using [two dimensional array in Java](/community/tutorials/two-dimensional-array-java). The element at row "r" and column "c" […]

Read more
Java Timer TimerTask Example — step-by-step Programming tutorial on Progressive Robot

Java Timer TimerTask Example

URL: https://www.progressiverobot.com/java-timer-timertask-example/ Java java.util.Timer is a utility class that can be used to schedule a thread to be executed at certain time in future. Java Timer class can be used to schedule a task to be run one-time or to be run at regular intervals. Java TimerTask java.util.TimerTask is an [abstract class](/community/tutorials/abstract-class-in-java) that implements Runnable […]

Read more
Java Tricky Interview Questions — step-by-step Programming tutorial on Progressive Robot

Java Tricky Interview Questions

URL: https://www.progressiverobot.com/java-tricky-interview-questions/ Sometime back I wrote an article on [Top 50 Java Programming Questions](/community/tutorials/java-programming-interview-questions). Our readers liked it a lot. So today we will look into some tricky interview questions in Java. Java Tricky Interview Questions These are programming questions but unless you have a deep understanding of Java, it will be hard to guess […]

Read more
Servlet JSP Tutorial — step-by-step Programming tutorial on Progressive Robot

Servlet JSP Tutorial

URL: https://www.progressiverobot.com/servlet-jsp-tutorial/ Servlet JSP technologies are backbone of Java EE programming. Recently I have written a lot about Servlet and JSP programming and this is a summary post for Servlet JSP Tutorials where I am providing all the article links in the order to read them. Servlet JSP Tutorial ![Servlet JSP Tutorial, JSP Tutorial, JSP […]

Read more
Enum in Java — step-by-step Programming tutorial on Progressive Robot

Enum in Java

URL: https://www.progressiverobot.com/java-enum/ Enum was introduced in Java 1.5 as a new type whose fields consists of a fixed set of constants. For example, we can create directions as Java Enum with fixed fields as EAST, WEST, NORTH, and SOUTH. Java Enum !java enum, enums in java In this tutorial, we will learn know how to […]

Read more
Java Thread wait, notify and notifyAll Example — step-by-step Programming tutorial on Progressive Robot

Java Thread wait, notify and notifyAll Example

URL: https://www.progressiverobot.com/java-thread-wait-notify-and-notifyall-example/ The Object class in java contains three final methods that allows threads to communicate about the lock status of a resource. These methods are wait(), notify() and notifyAll(). So today we will look into wait, notify and notifyAll in java program. wait, notify and notifyAll in Java ![wait and notify in java, wait […]

Read more
CallableStatement in Java Example — step-by-step Programming tutorial on Progressive Robot

CallableStatement in Java Example

CallableStatement in java is used to call stored procedure from java program. Stored Procedures are group of statements that we compile in the database for some task. Stored procedures are beneficial when we are dealing with multiple tables with complex scenario and rather than sending multiple queries to the database, we can send required data […]

Read more
JUnit Display Name - @DisplayName — step-by-step Programming tutorial on Progressive Robot

JUnit Display Name – @DisplayName

URL: https://www.progressiverobot.com/junit-display-name-displayname/ JUnit @DisplayName annotation is used to provide a custom name for the test class and test methods. We can use spaces, special characters, and even emojis in the display name. JUnit Display Name Example By default, [JUnit](/community/tutorials/junit5-tutorial) reporting prints the class name and method name in the IDE test report. We can use […]

Read more
How To Use Loops in Java — step-by-step Programming tutorial on Progressive Robot

How To Use Loops in Java

Writing repetitive tasks is common in programming. Loops are structures for controlling repetitive program flow. Depending on their syntax and logic, there are two main types of loops: `while` and `for` loops. In this tutorial, you will use both types to create repetitive tasks and learn about the benefits and drawbacks of each one.

Read more
CHAT