Java

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
Java Dependency Injection - DI Design Pattern Example Tutorial — step-by-step Programming tutorial on Progressive Robot

Java Dependency Injection – DI Design Pattern Example Tutorial

URL: https://www.progressiverobot.com/java-dependency-injection-design-pattern-example-tutorial/ Java Dependency Injection design pattern allows us to remove the hard-coded dependencies and make our application loosely coupled, extendable and maintainable. We can implement dependency injection in java to move the dependency resolution from compile-time to runtime. Java Dependency Injection Java Dependency injection seems hard to grasp with theory, so I would take […]

Read more
Java Heap Space vs Stack - Memory Allocation in Java — step-by-step Programming tutorial on Progressive Robot

Java Heap Space vs Stack – Memory Allocation in Java

URL: https://www.progressiverobot.com/java-heap-space-vs-stack-memory/ Sometime back I wrote a couple of posts about [Java Garbage Collection](/community/tutorials/java-jvm-memory-model-memory-management-in-java) and [Java is Pass by Value](/community/tutorials/java-is-pass-by-value-and-not-pass-by-reference "Java is Pass by Value and Not Pass by Reference"). After that I got a lot of emails to explain about Java Heap Space, Java Stack Memory, Memory Allocation in Java and what are the […]

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

Java ListIterator – ListIterator in Java

URL: https://www.progressiverobot.com/java-listiterator/ As we know Java has four cursors: Enumeration, Iterator, ListIterator, and Spliterator. We have already discussed Enumeration and Iterator cursors in my previous post. Before going through this post, please go through my previous post at: [Java Iterator](/community/tutorials/java-iterator). In this post, we will discuss about third Java cursor: ListIterator. Java ListIterator Like Iterator, […]

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

Java Reflection Example Tutorial

URL: https://www.progressiverobot.com/java-reflection-example-tutorial/ Java Reflection provides ability to inspect and modify the runtime behavior of application. Reflection in Java is one of the advance topic of core java. Using java reflection we can inspect a class, [interface](/community/tutorials/interface-in-java "What is Interface in Java – Example Tutorial"), [enum](/community/tutorials/java-enum "Java Enum"), get their structure, methods and fields information at […]

Read more
Java String Array — step-by-step Programming tutorial on Progressive Robot

Java String Array

URL: https://www.progressiverobot.com/java-string-array/ Java String array is used to hold fixed number of Strings. [String](/community/tutorials/java-string) [array](/community/tutorials/java-array) is very common in [simple java programs](/community/tutorials/simple-java-programs), specially among beginners to java and to test some specific scenarios. Even [java main method](/community/tutorials/public-static-void-main-string-args-java-main-method) argument is string array – public static void main(String[] args). So today we will look into different aspects […]

Read more
Как установить Java в Ubuntu с помощью Apt-Get — step-by-step Linux tutorial on Progressive Robot

Как установить Java в Ubuntu с помощью Apt-Get

Множество других статей и программ требует установленной Java. В этой статье мы осветим процесс установки и управления различными версиями Java. Это рекомендуемый и наиболее простой вариант. В Ubuntu 12.04 и более ранних…

Read more
CHAT