File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

this and super keywords, array.length attribute

 
Darshan Sharma
Greenhorn
Posts: 1
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello friends,

Where the 'this' and 'super' keywords and array.length attribute are declared in the java class libraries ?

also please explain how they are initialized and how they work during runtime ?

thank you...
 
Matthew Brown
Bartender
Posts: 4549
8
Java Netbeans IDE Scala
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Darshan. Welcome to the Ranch!

You won't find them in the API documentation, you need to look in the Java Language Specification if you really want the formal definition. And they're handled by the JVM - exactly how is an implementation detail that might vary between different JVMs. The way they behave is as described in the Specification.
 
Winston Gutkowski
Bartender
Pie
Posts: 9449
49
Eclipse IDE Hibernate Ubuntu
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Darshan Sharma wrote:Where the 'this' and 'super' keywords and array.length attribute are declared in the java class libraries ?

Except in passing, I don't think they are, they're described in the JLS.

also please explain how they are initialized and how they work during runtime ?

1. They aren't "initialized" - at least, not in the sense I think you mean.
2. For this sort of information, you should really read the Java Tutorials.

Winston

[Edit] Too slow.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic