• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Devaka Cooray
  • Ron McLeod
  • Jeanne Boyarsky
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Piet Souris
  • Carey Brown
  • Tim Holloway
Bartenders:
  • Martijn Verburg
  • Frits Walraven
  • Himai Minh

this and super keywords, array.length attribute

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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...
 
Bartender
Posts: 4568
9
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Bartender
Posts: 10780
71
Hibernate Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
reply
    Bookmark Topic Watch Topic
  • New Topic