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 |
signature of init method?
What driver should I use for scalable Oracle JDBC applications?
Why can't Tomcat find my Oracle JDBC drivers in classes111.zip?
Diff. types of triggers..
Can I enable requests to a jdbc connection pool for a database connection to wait until a connection is available?
How do you know which driver is connected to a database?
How to store images in database?
How java can be connected to a database?
What class.forname does, while loading the drivers?
What is jdbc and odbc?
What is dburl?
What does the jdbc driver interface do?