Java Interview Questions and Programs
1) Transient Variable in java? 2) Vector vs ArrayList in java? 3) Which version in java? 4) Concurrent hashmap in java? 5) Volatile keyword in java? 6) Comparable and toCompare() method in java? 1) Write syntax of Coroutines, Sealed Classes, Extension Function, Generics in kotlin fun main() = runBlocking { // this: CoroutineScope launch { // launch a new coroutine and continue delay(1000L) // non-blocking delay for 1 second (default time unit is ms) println("World!") // print after delay } println("Hello") // main coroutine continues while a previous one is delayed } Generic in Kotlin class Person<T>(age: T){ var age: T = age init { this .age= age println(age) } } fun main(args: Array<String>){ var ageInt...