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 is an outer join?

3 Answers   Infogain,


What is the different between ResultSet and RowSet?

0 Answers  


Stored procedure purpose?

2 Answers  


Why do we need a jdbcrowset like wrapper around resultset?

0 Answers  


What is batch processing and how to perform batch processing in jdbc?

0 Answers  






How to check jdbc connection in java?

0 Answers  


Can you define a foreign key, with a key from the same table?

2 Answers   IBM,


How can we store the file in the oracle database?

0 Answers  


Is jdbctemplate thread safe?

0 Answers  


What do you understand by jdbc statements?

0 Answers  


Where is ojdbc14 jar located?

0 Answers  


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

0 Answers  


Categories