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?



how we can remove hard code in java?..

Answer / 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

More JDBC Interview Questions

What are the classes and methods used for sending sql statements to database?

0 Answers  


What is the function of setautocommit?

0 Answers  


How to create Connection interface object because it is Interface , Interface is not instansiated?

9 Answers   Aptech, CTS, HCL,


How to insert an image or raw data into database?

0 Answers  


what is the current version of JDBC? and explain its features?

3 Answers  


What is an odbc driver?

0 Answers  


What is jdbc and why is it required?

0 Answers  


Is jdbc a middleware?

0 Answers  


What is the benefit of having jdbcrowset implementation? Why do we need a jdbcrowset like wrapper around resultset?

0 Answers  


What are pros and cons of using of Type-2 and Type-4 Drivers over Type-1 driver?

4 Answers   IBM,


What is the difference between jdbc and odbc?

0 Answers  


What is the execute method in java?

0 Answers  


Categories