資源描述:
《java編程規(guī)范new》由會員上傳分享,免費在線閱讀,更多相關(guān)內(nèi)容在教育資源-天天文庫。
1、Java?CodingStyleGuideAchutReddyServerManagementToolsGroupSunMicrosystems,Inc.Created:January27,1998Lastmodified:May30,2000ABSTRACTTheimportanceandbenefitsofaconsistentcodingstylearewellknown.ThisdocumentdescribesasetofcodingstandardsandrecommendationsforprogramswrittenintheJava?language.Itisin
2、tendedforallJavasoftwarede-velopers.ItcontainsnomaterialproprietarytoSun,andmaybefreelydistributedoutsideSunaswell.Feedbackintheformofcorrectionsorsuggestionsforimprovementarewelcomed.Commentsmaybesenttoachut@eng.sun.com.TableofContents1.0Introduction...........................................
3、............................................................................11.1Background...................................................................................................................11.2Acknowledgments......................................................................
4、...................................12.0SourceFiles........................................................................................................................12.1Sourcefilenaming........................................................................................................
5、22.2Sourcefileorganization................................................................................................22.2.1Copyright/IDblockcomment..............................................................................22.2.2packagedeclaration........................................
6、.....................................................32.2.3importdeclarations.............................................................................................32.2.4class/interfacedeclarations...........................................................................33.0NamingConven
7、tions.........................................................................................................33.1Packagenaming............................................................................................................4