how to get the name of an object that a script is attached to

hey, how do I get the name of an object that has a script attached to it.

JAVA not C#

everything inherited from Object has a variable named name