Top 6 Java Defects can resolve by Kotlin

This article looks at many categories of Java defects that Kotlin prevents in addition to null safety. Kotlin showed a surprising impact on productivity.




This article looks at many categories of Java defects that Kotlin prevents in addition to null safety. My first article (5 cool thing about Kotlin) provided a brief introduction to Kotlin and showed a surprising impact on productivity.
It’s important to realize the difference in value in fixing a defect in one class versus preventing an entire category of Java defects from occurring in any class.

What we see today:

  1. Equality Defect Categories
  2. Data Class Defect Categories
  3. Switch Defect Categories
  4. Assignment Defect Categories
  5. Override Defect Categories
  6. Null Defect Categories
Source: How Kotlin remove Java defects? 

Magic Multiply by 9 Trick without Pen and Paper

Now you’re ready to multiply any number with 9 in 3 sec.
28 X 9 = ?
From Step 2, we’ve to subtract 28 with 3 :
28 – 3 = 25(this is your first part of your answer)
Now from Step 1, we’ve to multiply the unit place of 28 by 9 i.e. 8 X 9.
8 X 9 = 72 and we’ll take only unit place of answer i.e. 2
And, finally merge both step and your answer is
28 X 9 = 252
Let’s take one more example : 57 X 9 =?
57 – 6 = 51
7 X 9 = 63
57 X 9 = 513
Full tutorial : Magic Multiply by 9 Trick - Mind Calculation in 3 sec