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 |
How can you know about drivers and database information ?
How to connect html page to database using jdbc?
Explain the JDBC Architecture?
What is the major difference between java.util.date and java.sql.date data type?
What is executequery in java?
how to retrieve sql exceptions
Is the JDBC-ODBC Bridge multi-threaded?
What is jsp and jdbc?
How to create Connection interface object because it is Interface , Interface is not instansiated?
What is the benefit of having jdbcrowset implementation?
what are the Different types of exceptions in JDBC?
What are 4 drivers available in JDBC? At what situation are four of the drivers used?