Mark Forums Read
  #1  
Old 12-01-2009, 07:30 AM
aaren47 aaren47 is offline
Junior Member
 
Join Date: Nov 2009
Location: U.K
Posts: 20
aaren47 is on a distinguished road
Default Java Tips And Tricks

Hi

Tips to make your program better
1. Don't make any class file larger than 1000 lines
2. Avoid Using Global Static function, if not possible then put that all function in a separate class.
3. Before starting the project Check out the proper decomposition of classes, interface and function. Practice of making structure then start coding.
e.g All Nouns is the probable candidate for classes and All Verbs are probable candidate for functions. User Interface wherever possible.
4. Always try to features given by java, don't try to write your own code if java provide such thing like StringBuffer, HashMap, ArrayList etc.
5. Always use the System properties handled by java for example. Don't use "\n" u can use
System.getProperty("line.separator");
6. Properly handle exception and their preferred treatment and if possible create a separate Exception Handling class where After Error message that thrown exception will be caught.
7. Avoid use of public data types for any class.

Keep sharing and reading

Thanks
__________________
Spam Services
Reply With Quote
 #Add to Ads's Reputation  
OldSponsored Ads
Ads AdsPromoter is online
Member
 
Join Date: LongTime
Location: Here
Posts: 1100
Ads is on a distinguished road
Default New Sponsored Ads



This message will go away once you are registered. Also, by registering, you will have access to all post topics, communicate privately with other members (PM), respond to polls, upload graphics, and access other special features! Registration is fast, simple and absolutely free so please Click Here to join our Web Hosting community today!
Reply With Quote
  #2  
Old 07-11-2011, 11:01 AM
vvjack01 vvjack01 is offline
Junior Member
 
Join Date: Jul 2011
Posts: 17
vvjack01 is on a distinguished road
Default

Always use the System properties handled by java for example. Don't use "\n" u can use System.getProperty("line.separator");
__________________
upvc roofing sheet
Reply With Quote
  #3  
Old 07-30-2011, 04:15 AM
vvpeter20 vvpeter20 is offline
Junior Member
 
Join Date: Jul 2011
Posts: 16
vvpeter20 is on a distinguished road
Default

Properly handle exception and their preferred treatment and if possible create a separate Exception Handling class where After Error message that thrown exception will be caught.
__________________
funny pictures
Reply With Quote
  #4  
Old 08-16-2011, 01:11 PM
peterjack15 peterjack15 is offline
Senior Member
 
Join Date: Aug 2011
Posts: 146
peterjack15 is on a distinguished road
Default

Properly handle exception and their preferred treatment and if possible create a separate Exception Handling class where After Error message that thrown exception will be caught.
Reply With Quote
  #5  
Old 10-20-2011, 12:46 PM
SusanJoy SusanJoy is offline
Junior Member
 
Join Date: Oct 2011
Posts: 5
SusanJoy is on a distinguished road
Default

One can find a number of online web portals which help you to improve you java skills by publishing a series of java skill tests.The best thing when learning is to read more Java tutorials, and to combine the Java tutorials you learn from with the short and useful Java tips you find.
__________________
Silk Cotton Sarees
Reply With Quote
  #6  
Old 01-03-2012, 03:27 AM
kunsts12 kunsts12 is offline
Junior Member
 
Join Date: Jan 2012
Posts: 10
kunsts12 is on a distinguished road
Default

Thank you Friends,for sharing this,I just started learning java.Its Really helps me.
Reply With Quote
 #Add to Ads's Reputation  
OldSponsored Ads
Ads AdsPromoter is online
Member
 
Join Date: LongTime
Posts: 1100
Ads is on a distinguished road
Default New Sponsored Ads



This message will go away once you are registered. Also, by registering, you will have access to all post topics, communicate privately with other members (PM), respond to polls, upload graphics, and access other special features! Registration is fast, simple and absolutely free so please Click Here to join our Web Hosting community today!
Reply With Quote
Reply


Thread Tools
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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT. The time now is 12:57 AM.


Powered by vBulletin Version 3.6.1
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
SEO by vBSEO 2.4.0