Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > Java > Java and JDK > Java Basics
Password Reminder
Register
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
Java Basics General beginning Java language questions that don't fit in one of the more specific forums. Please specify what version.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Java Basics section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old January 7th, 2009, 02:25 AM
Authorized User
 
Join Date: Jan 2009
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
Default Class name and file name

Hi
I am new in this forums. I am also innovice in java. Plese help me about the following simple question.
Why java class name and the file name be the same?
Reply With Quote
  #2 (permalink)  
Old January 8th, 2009, 07:52 AM
jomet
Guest
 
Posts: n/a
Default

First of all, it only has to be the same when the class is public. And there is no explicit reason for that, it's just a convention that came along with old versions of java and people got used to it... They say it's because of the limited capabilities of the compiler to compile dependencies.

From the page
http://wiki.answers.com/Q/Why_do_fil...incide_in_Java
Reply With Quote
  #3 (permalink)  
Old January 13th, 2009, 01:18 AM
Authorized User
 
Join Date: Jan 2009
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Thank you jomet for your help. And also thank for your excellent quotation.

Last edited by Shimul Mahmud; January 13th, 2009 at 01:22 AM..
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Class File Asp_Developer Visual Basic 2005 Basics 1 April 30th, 2008 10:56 PM
Class file SKhna Ajax 1 February 4th, 2008 11:30 AM
class file thas123 ASP.NET 2.0 Basics 0 December 13th, 2006 03:45 AM
Regarding Class Library (.dll) from class file manish.sharma04 BOOK: Wrox's ASP.NET 2.0 Visual Web Developer 2005 Express Edition Starter ISBN: 978-0-7645-8807-5 1 March 3rd, 2006 07:32 AM
class file server sivapmk J2EE 3 December 14th, 2003 08:02 AM



All times are GMT -4. The time now is 08:52 AM.


Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.