Skip to main content

this,super Keywords and array.length attribute

Please note these java.net forums are being decommissioned and use the new and improved forums at https://community.oracle.com/community/java.
2 replies [Last post]
das007
Offline
Joined: 2012-06-29

Hello Friends,

Can you tell me where the 'this' and 'super' keywords are declared in the
java class libraries and also the array.length attribute?

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
jamesharte
Offline
Joined: 2012-09-28

keywords are part of the language, not part of the class definitions.

das007
Offline
Joined: 2012-06-29

Thanks for your answer.

But i am not yet satisfied with your answer.

Can you please tell me how an object is assigned to the "this" or "super"
keyword?

And array.length is an attribute , so it might have been declared somewhere.

And lastly, I think java language is madeup of Java package in which all the
other classes reside.So what do you mean by -
"keywords are part of the language, not part of the class definitions."?