Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

how we can remove hard code in java?

Answer Posted / sreenivas

by using command line arguments and System properties .
by using the command line arguments ,we can pass the values
from the command line as well as with same order with same
order .but in System properties, we can pass the values in
any order by using System.getProperty() meethod and pass
the values from the command line we specify the option -D
and followe by variable name=value.

Is This Answer Correct ?    19 Yes 5 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How many types of JDBC Drivers are present and what are they?

1075


What are the advantages of using preparedstatement over statement?

941


Is it possible to connect to multiple databases? Using single statement can we update or extract data from two or three or many databases?

1032


What is drivermanager in java?

890


What is odbc. how is it related to sql cli?

993


What is odbc and jdbc?

928


What is jdbc odbc bridge in java?

1016


How do we call a stored procedure from jdbc?

927


Is jdbc connection secure?

893


What are devices?

906


What are JDBC Best Practices?

1051


Which database is used with java?

911


What do you mean by batch processing in jdbc?

969


How can we retrieve the file in the oracle database?

920


What is metadata in programming?

948