8

I've only recently learned about the qualified this, and was curious as to when was it introduced in the language, as I've been using Java here and there for around 18 years.

Oracle keeps only the specifications for Java SE up to 6, but I cannot find any earlier versions online. I'm curious if it was there all this time (but I never paid attention to it) or is it something introduced later.

5

I've found the answer after some additional searching: It was introduced in Java 1.2. It's not in the 1.0 specification, but it appears in 2.0.

| improve this answer | |
  • So there is life without this :) – Silviu Burcea Aug 4 '15 at 12:44
  • @SilviuBurcea There's certainly a life without Java.this (:-p – Edd Aug 5 '15 at 12:22
1

Qualified this was introduced along with inner classes in Java 1.1. However, 1.1 was introduced without a whole new Java Language Specification (JLS). The changes are in separate documents that specify the differences from Java 1.0.

You may need the Wayback Machine. Although there is an Inner Classes Specification on the JCP site.

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.