Method inside a synchronized block

Report a typo

Here is a class named SomeClass:

class SomeClass {

    val lock = Any()

    @Synchronized
    fun method1() {

        // some statements

        method2()
    }

    fun method2() {

        // some statements

        synchronized(lock) {

            // do something useful
        }
    }
}

Select two correct statements.

Select one or more options from the list
___

Create a free account to access the full topic