Posted on

Java feature

  1. double brace
  2. ThreadLocal
  3. Instance Initializers
    public class Foo {
      public Foo() {
        System.out.println("constructor called");
      static {
        System.out.println("static initializer called");
        System.out.println("instance initializer called");
  4. Enum – is a class
  5. try, finally, exception
    public static int f() {
        try {
          throw new RuntimeException();
        } finally {
          return 0;
  6. URL
    new URL("").equals(new URL(""))


Posted on

Kotlin by Antonio Leiva


12 reasons why you should start using Kotlin for Android today (KAD 30)

How to use Kotlin code from Java: start using Kotlin today (KAD 29)

Sealed classes in Kotlin: enums with super-powers (KAD 28)

Objects in Kotlin: Create safe singletons in one line of code (KAD 27)

Interfaces in Kotlin. Who said interfaces can’t have code? (KAD 26)

Unit tests on Android with Kotlin (KAD 22)

How to use Retrofit on android with Kotlin (KAD 21)

Writing a RecyclerView Adapter in Kotlin (KAD 16)

Property delegation in Kotlin: Assign values in Android without having the context (KAD 15)

Reified Types in Kotlin: how to use the type within a function (KAD 14)

Using “when” expression in Kotlin: The “switch” with super powers (KAD 13)

Functional operations with collections in Kotlin (KAD 11)

Data Classes in Kotlin: save a good bunch of lines of code (KAD 10)

Using Anko to run background tasks with Kotlin in Android (KAD 09) + Anko layouts on Android. Should I forget about XMLs?

Custom Views in Android with Kotlin (KAD 06)

Kotlin Android Extensions: Say goodbye to findViewById (KAD 04)

read more on website