Java

Command Line Arguments in Java — step-by-step Programming tutorial on Progressive Robot

Command Line Arguments in Java

Command-line arguments in Java are used to pass arguments to the main program. If you look at the [Java main method](/community/tutorials/public-static-void-main-string-args-java-main-method) syntax, it accepts [String array](/community/tutorials/java-string-array) as an argument. When we pass command-line arguments, they are treated as strings and passed to the main function in the string array argument. The arguments have to be […]

Read more
Core Java Quiz — step-by-step Programming tutorial on Progressive Robot

Core Java Quiz

Welcome to Core Java Quiz. Java is an object-oriented programming language. Core Java Quiz In this quiz, you will be tested on Core Java basics and OOPS concepts. There are some code snippets too to test your basic Java coding skills. Some of the questions have multiple answers. You can click on the "Reveal Answer" […]

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
How To Install Apache Tomcat 7 on Ubuntu 14.04 via Apt-Get — step-by-step Linux tutorial on Progressive Robot

How To Install Apache Tomcat 7 on Ubuntu 14.04 via Apt-Get

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. This tutorial covers the basic installation and some configuration of Tomcat 7.0.x on Ubuntu 14.04.

Read more
Java 15 Features — step-by-step Programming tutorial on Progressive Robot

Java 15 Features

URL: https://www.progressiverobot.com/java-15-features/ Keeping up with the six-month cycle tradition, after the release of [Java 14](/community/tutorials/java-14-features#5-text-blocks-preview) on March 17, 2020, we now have Java 15, the next non-LTS version rolling out on September 15, 2020. Java 15 Features Here's a quick look at features that are a part of Java 15: Sealed Classes (Preview) – JEP […]

Read more
Java Callable Future Example — step-by-step Programming tutorial on Progressive Robot

Java Callable Future Example

URL: https://www.progressiverobot.com/java-callable-future-example/ Java Callable and Future are used a lot in multithreaded programming. In last few posts, we learned a lot about [java threads](/community/tutorials/multithreading-in-java "Java Thread Tutorial") but sometimes we wish that a thread could return some value that we can use. Java 5 introduced java.util.concurrent.Callable interface in concurrency package that is similar to Runnable […]

Read more
CHAT