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

How can you know about drivers and database information ?

1 Answers  


How to connect html page to database using jdbc?

1 Answers  


Explain the JDBC Architecture?

1 Answers  


What is the major difference between java.util.date and java.sql.date data type?

1 Answers  


What is executequery in java?

1 Answers  


how to retrieve sql exceptions

2 Answers   Bosch,


Is the JDBC-ODBC Bridge multi-threaded?

2 Answers   Wipro,


What is jsp and jdbc?

1 Answers  


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

9 Answers   Aptech, CTS, HCL,


What is the benefit of having jdbcrowset implementation?

1 Answers  


what are the Different types of exceptions in JDBC?

1 Answers  


What are 4 drivers available in JDBC? At what situation are four of the drivers used?

1 Answers  


Categories