Java Minute

Quick answers to common Java questions, one episode at a time.

Sort
#404

How can you get the bytes of a String?

#401

What is the difference between a stream and an iterator?

#400

Can you bind mutable objects to scoped values?

#399

What are the components of a Collector?

#398

How can you generate repeatable random numbers?

#397

What is flattening?

#396

Why should you favor composition over inheritance?

#395

What are the differences between collections and streams?

#394

Can you build an object without calling its constructor?

#393

How does scoped value inheritance work?

#392

What are the characteristics of a Collector?

#391

How can you reverse the elements of a list?

#390

Why should you favor immutability?

#389

How can you replace all the elements of a list?

#388

How can you format a string of characters?

#387

What is the stack of a thread?

#386

What is the canonical constructor?

#385

What is a group in a regular expression?

#384

How can you use preview features?

#383

What is JLink?

#382

How can you get the max of a collection?

#381

How can you compare arrays for equality?

#380

How can you search for an element in a list?

#379

How can you limit the number of concurrent accesses to a resource?

#378

How can you get the number of characters in a String?

#377

What is a subsized stream?

#376

What is context switching?

#375

What is an EnumSet?

#374

How can you add a snippet of code in your Javadoc?

#370

What are the SOLID principles?

#308

What is a thread scheduler?

#162

What is a ReadWriteLock?

#156

What is the difference between an interface and an abstract class?