Solved

this.getClass()

Posted on 2010-11-22
2
461 Views
Last Modified: 2012-05-10
If I do this:
System.out.println (this.getClass());
and it outputs:
com.mycompany.MyClass$1
What does the $1 mean?
0
Comment
Question by:allelopath
2 Comments
 
LVL 26

Accepted Solution

by:
ksivananth earned 500 total points
ID: 34188890
some annonymous inner class with in MyClass
0
 
LVL 1

Author Comment

by:allelopath
ID: 34188940
ah yes, makes sense now.
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
how to add new optional parameter to JSP 1 49
arguments to jar 5 34
ejb entity bean example issue 2 16
Java: anonymous class 4 29
For customizing the look of your lightweight component and making it look opaque like it was made of plastic.  This tip assumes your component to be of rectangular shape and completely opaque.   (CODE)
For customizing the look of your lightweight component and making it look lucid like it was made of glass. Or: how to make your component more Apple-ish ;) This tip assumes your component to be of rectangular shape and completely opaque. (COD…
Viewers learn about the scanner class in this video and are introduced to receiving user input for their programs. Additionally, objects, conditional statements, and loops are used to help reinforce the concepts. Introduce Scanner class: Importing…
Viewers will learn about the different types of variables in Java and how to declare them. Decide the type of variable desired: Put the keyword corresponding to the type of variable in front of the variable name: Use the equal sign to assign a v…

856 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question