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 are the main components of JDBC ?
Does sql allow null values ?
Where is jdbc used?
What is 2-tier and 3-tier architecture?
how can we connect to db without using getConnection() method
What will happen when ResultSet is not closed?
Explain Basic Steps in Writing a Java Program Using Jdbc?
all Java qts are imp ?
What is the difference between ojdbc6 and ojdbc7?
What are the common tasks of JDBC?
i have 1000 records in resultset, how to get first 100 records from resultset, because resultset fetch all 1000 records at a time?
What is a datasource in java?