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 classes and methods used for sending sql statements to database?
What is the function of setautocommit?
How to create Connection interface object because it is Interface , Interface is not instansiated?
How to insert an image or raw data into database?
what is the current version of JDBC? and explain its features?
What is an odbc driver?
What is jdbc and why is it required?
Is jdbc a middleware?
What is the benefit of having jdbcrowset implementation? Why do we need a jdbcrowset like wrapper around resultset?
What are pros and cons of using of Type-2 and Type-4 Drivers over Type-1 driver?
What is the difference between jdbc and odbc?
What is the execute method in java?