File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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

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.

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

Joined: Oct 14, 2005
Posts: 18541

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

Joined: Oct 27, 2005
Posts: 19649

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

How To Ask Questions How To Answer Questions
Campbell Ritchie

Joined: Oct 13, 2005
Posts: 37891
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:
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 file
Finding a language setting or locale of the keyboard