// Kotlin class KotlinClass { var nullableInt:Int? = null var notNullInt:Int = 1 } // Java KotlinClass obj = new KotlinClass(); Integer i = obj.getNullableInt(); int i2 = obj.getNotNullInt();
// Kotlin sealed class KotlinSealedClass { class SubA : KotlinSealedClass(){} class SubB : KotlinSealedClass(){} } // Java public class JavaClass extends KotlinSealedClass{ } // ϏϧυΤϥʔ // There is no default constructor available for // KotlinSealedClass