Do you want BuboFlash to help you learning these things? Or do you want to add or correct something? Click here to log in or create user.



Tags
#horstmann-java8-for-really-impatient #java #java8 #lambda-expressions
Question

public class Application() {
  public void doWork() {
    Runnable runner = () -> { ...; System.out.println(this.toString()); ... };
    //...
  }
}

Does this in this.toString() refer to Application or Runnable?
Answer
Application

Tags
#horstmann-java8-for-really-impatient #java #java8 #lambda-expressions
Question

public class Application() {
  public void doWork() {
    Runnable runner = () -> { ...; System.out.println(this.toString()); ... };
    //...
  }
}

Does this in this.toString() refer to Application or Runnable?
Answer
?

Tags
#horstmann-java8-for-really-impatient #java #java8 #lambda-expressions
Question

public class Application() {
  public void doWork() {
    Runnable runner = () -> { ...; System.out.println(this.toString()); ... };
    //...
  }
}

Does this in this.toString() refer to Application or Runnable?
Answer
Application
If you want to change selection, open document below and click on "Move attachment"

pdf

owner: piotr.wasik - (no access) - Java 8 for the Really Impatient (Horstmann), p13

Summary

statusnot learnedmeasured difficulty37% [default]last interval [days]               
repetition number in this series0memorised on               scheduled repetition               
scheduled repetition interval               last repetition or drill

Details

No repetitions


Discussion

Do you want to join discussion? Click here to log in or create user.