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 do you understand by jdbc datasource?

1027


What is jdbc and jpa?

1007


Explain what should be done when a SQL exception is raised?

973


Explain the difference between inner and outer join ?

1034


How does JDBC API helps us in achieving loose coupling between Java Program and JDBC Drivers API?

1082


What is jdbc driver in java?

931


Can we have foreign key reference to a non primary key column ?

985


What are dml and ddl?

1002


What are the differences between resultset and rowset?

1131


What are the different types of locking in JDBC?

1013


What are the flow statements of jdbc?

1010


please tell me the name and url path for type-4 driver ?

3180


How are jdbc statements used?

940


What is the purpose of jdbc?

1045


What happens if connection is not closed in jdbc?

979