Two methods, two statements

Report a typo

Here is a class named SomeClass:

class SomeClass {

    @Synchronized
    fun method1() {
        // do something useful
        method2()
    }

    @Synchronized
    fun method2() {
        // do something useful
    }
}

You have two instances of the class:

val instance1 = SomeClass()
val instance2 = SomeClass()

Select two correct statements:

Select one or more options from the list
___

Create a free account to access the full topic