Answer Posted / devnaga
Hard code is the code directly used in the program. Soft
code gets the information dynamically from outside. For
example, to get the database connectivity, if we passed the
url, username & password for thin drivers in the
programming itself is hard coding. At the same time, if we
create a jndi for the above in config & get it in the
program using jndi name is softcode. It is becoz to change
the db connectivity settings we need not modify the program.
| Is This Answer Correct ? | 66 Yes | 18 No |
Post New Answer View All Answers
What is static synchronization?
Explain super keyword in java.
Can you create an object of an abstract class?
What purpose do the keywords final, finally, and finalize fulfill?
What is difference between arraylist and list in java?
Is singleton set an interval?
Explain oops concepts in detail?
Do we need to manually write Copy Constructor?
What is a stringbuffer?
What's the purpose of static methods and static variables?
How to display all the prime numbers between 1 and n (n is the number, get the input from user)
What is the primary benefit of encapsulation?
What is the properties class?
What modifiers may be used with a top-level class?
What is difference between path and classpath variables?