File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Java in General and the fly likes Why some java classes starts with underscore(Ex: _Test) Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "Why some java classes starts with underscore(Ex: _Test)" Watch "Why some java classes starts with underscore(Ex: _Test)" New topic
Author

Why some java classes starts with underscore(Ex: _Test)

Srinivas Palam
Ranch Hand

Joined: Oct 20, 2005
Posts: 43
public class Test extends _Test {
Some methods and statements
}
Hebert Coelho
Ranch Hand

Joined: Jul 14, 2010
Posts: 754

I have never seen some pattern like that.

The only name pattern with _ that I have seen is the JPA Canonical Metamodel.


[uaiHebert.com] [Full WebApplication JSF EJB JPA JAAS with source code to download] One Table Per SubClass [Web/JSF]
Paul Clapham
Bartender

Joined: Oct 14, 2005
Posts: 18541
    
    8

That would be because the person who created the class decided to start its name with an underscore. Nothing else. It doesn't mean anything specific in the Java language, although it might mean something in the mind of the person who wrote the class.
Rob Spoor
Sheriff

Joined: Oct 27, 2005
Posts: 19649
    
  18

Likewise, and those end with _, not start with it.
[Edit]In response to Hebert


SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6
How To Ask Questions How To Answer Questions
Campbell Ritchie
Sheriff

Joined: Oct 13, 2005
Posts: 37891
    
  22
Underscores starting names were standard practice in some C/C++ conventions. The corresponding Java convention is in this page, ยง13.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Why some java classes starts with underscore(Ex: _Test)
 
Similar Threads
i implemented interface in anonymous class then it shows compiler error why
enclosing class in a construcotr valid or not?
an error I cannot figure out
packaging log4j.properties file
Finding a language setting or locale of the keyboard