Every programming language provides ways to express our ideas and then translates them into reality. This thread will explore ten #Java programming features used frequently by developers in their day-to-day programming jobs.
Collections are used to store, sort, search, and iterate objects. It provides a few basic interfaces, such as List, Set, Map, and their implementations. The traditional way of creating Collections may look verbose. Therefore, #Java 9 introduced a few very concise factory methods.
#Java 10 introduced type inference for local variables, which is super convenient for developers.
The traditional switch statement has been in Java from the beginning, which resembled C and C++. It was ok, but as the language evolved, it hasn't offered us any improvement. #Java 14 introduced a new way of looking at this switch statement, and it offers much more rich features.
Although records are relatively new features in Java, released in #Java 16, many developers find it super helpful to create immutable objects.

public record Point(int x, int y) {
}
We often get null from a method instead of a value with the specified type. An invoker cannot know this upfront unless it invokes it. It’s a violation of the contract.
#Optional is the rescue.
Every developer is confused with date-time calculation to some degree. This was mainly due to not having a good Java API to deal with dates and times in #Java for a long time.
#Java 8 brings an excellent API set in java.time that solves all the date time-related issues.
Every developer hates the NullPointerException. It becomes challenging when StackTrace doesn’t provide helpful information it. From #Java 14 and onward, we get more details in the StackTrace, which is super convenient.
#Java 8 brings CompletableFuture. We can easily accomplish three rest calls in three different cores using it. It gives us a way for multiple independent units of a program to be executed independently.
Lambda Expression is probably the most powerful feature in the #Java language. It reshaped the way we write code.
And the Stream API.
"Lambda Expressions are the gateway drug to #Java 8, but Streams are the real addiction.
- Venkat Subramaniam.
Read the whole article now:
foojay.io/today/top-10-j…
And finally, keep an eye here on my Twitter (follow?) to get more similar threads in the future.

• • •

Missing some Tweet in this thread? You can try to force a refresh
 

Keep Current with A N M Bazlur Rahman 🇧🇩🇨🇦

A N M Bazlur Rahman 🇧🇩🇨🇦 Profile picture

Stay in touch and get notified when new unrolls are available from this author!

Read all threads

This Thread may be Removed Anytime!

PDF

Twitter may remove this content at anytime! Save it as PDF for later use!

Try unrolling a thread yourself!

how to unroll video
  1. Follow @ThreadReaderApp to mention us!

  2. From a Twitter thread mention us with a keyword "unroll"
@threadreaderapp unroll

Practice here first or read more on our help page!

More from @bazlur_rahman

May 21
#Java has been and continues to be the most popular language over the last two decades. After many discussions with Java developers, I have concluded the following seven key reasons why Java developers still love Java after all these years.
1. Community: 
In every major city, you will find a Java user group that helps developers achieve the required skills, voluntarily and for free, who help distribute resources and solutions, increase networking, and expand #Java knowledge globally. dev.java/community/jugs/.
2. Language and Platform
An expressive and easy-to-read language helps new developers quickly get used to the existing codebase. #Java is an open-source programming platform with great documentation support. It's a platform that houses and enables a wide range of other languages.
Read 11 tweets

Did Thread Reader help you today?

Support us! We are indie developers!


This site is made by just two indie developers on a laptop doing marketing, support and development! Read more about the story.

Become a Premium Member ($3/month or $30/year) and get exclusive features!

Become Premium

Don't want to be a Premium member but still want to support us?

Make a small donation by buying us coffee ($5) or help with server cost ($10)

Donate via Paypal

Or Donate anonymously using crypto!

Ethereum

0xfe58350B80634f60Fa6Dc149a72b4DFbc17D341E copy

Bitcoin

3ATGMxNzCUFzxpMCHL5sWSt4DVtS8UqXpi copy

Thank you for your support!

Follow Us on Twitter!

:(