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 |
What is jdbc architecture in java?
How do you debug PL/SQL code?
What is xe in oracle jdbc url?
Explain the steps in writing a java program using jdbc?
Are all the required JDBC drivers to establish connectivity to my database part of the JDK?
What is Statement and PreparedStatement? whatz the difference?
What is jdbc driver for sql server?
What is a JDBC 2.0 DataSource?
what is meant by connection pooling?
What is a merge field?
Which is faster jdbc or odbc?
What are the types of jdbc drivers that exist?