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 jdbc architecture in java?

0 Answers  


How do you debug PL/SQL code?

1 Answers  


What is xe in oracle jdbc url?

0 Answers  


Explain the steps in writing a java program using jdbc?

0 Answers  


Are all the required JDBC drivers to establish connectivity to my database part of the JDK?

0 Answers  






What is Statement and PreparedStatement? whatz the difference?

2 Answers  


What is jdbc driver for sql server?

0 Answers  


What is a JDBC 2.0 DataSource?

0 Answers  


what is meant by connection pooling?

4 Answers  


What is a merge field?

0 Answers  


Which is faster jdbc or odbc?

0 Answers  


What are the types of jdbc drivers that exist?

0 Answers  


Categories