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

What are collection pools?

967


Is jdbc a protocol?

931


What are the advantages of using preparedstatement in java?

979


What are the steps required to execute a query in jdbc?

939


What are the steps to connect to the database in java?

966


Does sql allow null values ?

957


What causes the "No suitable driver" error?

1048


Explain about the Try Block?

975


What are the jdbc api components?

1141


Is jpa faster than jdbc?

879


What is the major difference between java.util.date and java.sql.date data type?

949


What are the benefits of PreparedStatement over Statement?

1002


What are temp tables ?

971


What is a statement in java?

888


What are restrictions on triggers?

2220