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 does connection pooling mean ?
What are the advantages of using preparedstatement over statement?
What are the classes and methods used for sending sql statements to database?
What do you mean by batch processing in jdbc?
What is benefit of using preparedstatement in java?
What is batch processing and how to perform batch processing in jdbc?
What is meant by jdbc and odbc?
Does the database server have to be running Java or have Java support in order for my remote JDBC client app to access the database?
What is getconnection method in java?
How can we execute stored procedures using callablestatement?
Where can I find info, frameworks and example source for writing a JDBC driver?
What is new in JDBC 2.0?