Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Java > Java and JDK > BOOK: Beginning Java 2
|
BOOK: Beginning Java 2
This is the forum to discuss the Wrox book Beginning Java 2, SDK 1.4 Edition by Ivor Horton; ISBN: 9780764543654
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning Java 2 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old March 5th, 2004, 03:55 PM
Registered User
 
Join Date: Mar 2004
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to amangautam80
Default search for satisfactory answer

hello friend iam beginner in java programming,
i want to know class name we always start with capital letter
why it is so? if it can be small then why we use this convention.
is there serious error can be generate when we give our class name
that start with small letter.

 
Old March 7th, 2004, 06:32 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 175
Thanks: 0
Thanked 0 Times in 0 Posts
Default

It is the accepted convention for class names to begin with a capital letter. The compiler won't choke or bark at you if you ignore this standard but your fellow developers might. Other conventions are that package names should all be lower case, constants (static final variables) should be in upper case and viarable names should use camel casing (myVariable, yourVariable, etc. Don't fight it accept it and go with the flow, having said that we live in a democracy and it's your right to make yourself unpopular ;)

Cheers

Martyn





Similar Threads
Thread Thread Starter Forum Replies Last Post
Try this, answer me surendran PHP How-To 1 November 14th, 2006 07:09 AM
Please answer canasdaq XML 3 April 19th, 2006 09:04 AM
i want answer titto_oo7 C# 7 February 9th, 2006 03:59 PM
search for satisfactory answer amangautam80 BOOK: Beginning Java 2 2 May 12th, 2004 03:47 AM





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