Java

Strategy Design Pattern in Java - Example Tutorial — step-by-step Programming tutorial on Progressive Robot

Strategy Design Pattern in Java – Example Tutorial

URL: https://www.progressiverobot.com/strategy-design-pattern-in-java-example-tutorial/ Strategy design pattern is one of the behavioral design pattern. Strategy pattern is used when we have multiple algorithm for a specific task and client decides the actual implementation to be used at runtime. Strategy Pattern ![strategy pattern, strategy design pattern](images/strategy-design-pattern-in-java-example-tutorial-section-1.png) Strategy pattern is also known as Policy Pattern. We define multiple algorithms […]

Read more
Collections in Java - Everything You MUST Know — step-by-step Programming tutorial on Progressive Robot

Collections in Java – Everything You MUST Know

Java Collections Framework is one of the core parts of the Java programming language. Collections are used in almost every programming language. Most of the programming languages support various type of collections such as [List](/community/tutorials/java-list), [Set](/community/tutorials/java-set), [Queue](/community/tutorials/java-queue), [Stack](/community/tutorials/java-stack), etc. What is Java Collections Framework? Collections are like containers that group multiple items in a single […]

Read more
Eclipse OutOfMemory Error Fix by increasing Heap Memory/Permgen Space — step-by-step Programming tutorial on Progressive Robot

Eclipse OutOfMemory Error Fix by increasing Heap Memory/Permgen Space

Eclipse Out of Memory Error happens when you are working on large projects. Sometimes it's because of Permgen space (below Java 8) and sometimes your eclipse memory runs out of heap memory. Eclipse OutOfMemoryError Fix We can increase eclipse memory by providing more Permgen space and heap memory for Eclipse to use. These settings are […]

Read more
How to open a File in Java — step-by-step Programming tutorial on Progressive Robot

How to open a File in Java

URL: https://www.progressiverobot.com/java-open-file/ Sometimes we have to open a file in java program. java.awt.Desktop can be used to open a file in java. Desktop implementation is platform dependent, so first, we should check if the operating system supports Desktop or not. This class looks for the associated application registered to the current platform to open a […]

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

ConcurrentHashMap in Java

If you are a Java Developer, I am sure that you must be aware of ConcurrentModificationException that comes when you want to modify the Collection object while using iterator to go through with all its element.

Read more
DAO Design Pattern — step-by-step Programming tutorial on Progressive Robot

DAO Design Pattern

DAO stands for Data Access Object. DAO [Design Pattern](/community/tutorials/java-design-patterns-example-tutorial) is used to separate the data persistence logic in a separate layer. This way, the service remains completely in dark about how the low-level operations to access the database is done. This is known as the principle of Separation of Logic. DAO Design Pattern With DAO […]

Read more
"The method X is ambiguous for the type Y" Java ambiguous method call null error — step-by-step Programming tutorial on Progressive Robot

“The method X is ambiguous for the type Y” Java ambiguous method call null error

URL: https://www.progressiverobot.com/the-method-is-ambiguous-for-the-type-java-ambiguous-method-call-null-error/ If you are reading this, chances are you got The method X is ambiguous for the type Y error when compiling a java program in terminal or in any Java IDE. Java ambiguous method call Here we are going to explain why java ambiguous method call error comes with some examples. This ambiguous […]

Read more
CHAT