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: