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 main components of JDBC ?

0 Answers  


Does sql allow null values ?

0 Answers  


Where is jdbc used?

0 Answers  


What is 2-tier and 3-tier architecture?

1 Answers   TCS,


how can we connect to db without using getConnection() method

4 Answers  


What will happen when ResultSet is not closed?

1 Answers   CTS,


Explain Basic Steps in Writing a Java Program Using Jdbc?

0 Answers   Winsol Solutions,


all Java qts are imp ?

1 Answers   eBay,


What is the difference between ojdbc6 and ojdbc7?

0 Answers  


What are the common tasks of JDBC?

0 Answers  


i have 1000 records in resultset, how to get first 100 records from resultset, because resultset fetch all 1000 records at a time?

8 Answers   HSBC,


What is a datasource in java?

0 Answers  


Categories