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

signature of init method?

2 Answers  


What driver should I use for scalable Oracle JDBC applications?

0 Answers  


Why can't Tomcat find my Oracle JDBC drivers in classes111.zip?

0 Answers  


Diff. types of triggers..

4 Answers   Logica CMG,


Can I enable requests to a jdbc connection pool for a database connection to wait until a connection is available?

0 Answers  


How do you know which driver is connected to a database?

3 Answers  


How to store images in database?

2 Answers  


How java can be connected to a database?

0 Answers  


What class.forname does, while loading the drivers?

0 Answers  


What is jdbc and odbc?

0 Answers  


What is dburl?

0 Answers  


What does the jdbc driver interface do?

0 Answers  


Categories