All Stories

Kotlin - no_image

Reduce reduce method transforms a given collection into a single result. It takes a lamda operator to combine a pair of elements into a accumulated value.It then traverses the co...

In tutorial, no_image, kotlin, Jan 23, 2025

Kotlin - nullability_compile_time_error

Describe nullability and null safetyNullability is the ability of a variable to hold a null value. When a variable contains null, an attempt to dereference the variable leads to a Nul...

In tutorial, nullability_compile_time_error, kotlin, Jan 23, 2025

Kotlin - no_image

Constructors invocation orderSuppose we have next code:```open class Parent {

In tutorial, no_image, kotlin, Jan 23, 2025

Kotlin - no_image

## Default method in kotlin interfaceBefore getting into Kotlin default method in interface ,lets go through the default interface mthod in Java which was introduced in Java 8 and ...

In tutorial, no_image, kotlin, Jan 23, 2025

Kotlin - crossinline

Crossinline keyword

In tutorial, crossinline, kotlin, Jan 23, 2025

Code - no_image

How to create empty constructor for data class? Click to expand! If you give default value to all the fields - empty constructor is generated automatically by Kotlin: ``` data c...

In tutorial, no_image, kotlin, Jan 23, 2025

Java - no_image

InterfaceThere are a number of situations in software engineering when it is important for disparate groups of programmers to agree to a “contract” that spells out how their software ...

In tutorial, no_image, java, Jan 23, 2025

Java - semaphore

SemaphoreSemaphore (java.util.concurrent.Semaphore) used for limit the number of threads accessing a specific resource. Conceptually, a semaphore maintains a set of permits. Each acqu...

In tutorial, semaphore, java, Jan 23, 2025

Java - no_image

Executor interface

In tutorial, no_image, java, Jan 23, 2025

Java - no_image

Comparable vs Comparator

In tutorial, no_image, java, Jan 23, 2025