What is hard code & soft code?

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


Please Help Members By Posting Answers For Below Questions

What occurs when an object is constructed?

560


How can you generate random numbers in java?

577


How to store image in arraylist in java?

503


What is a finally block?

550


Can a class have 2 constructors?

490






What is split return?

486


How can you handle java exceptions?

517


What are the types of casting?

587


What is internal iteration in java se 8?

622


What is the difference between the file and randomaccessfile classes?

524


What is int short for?

506


What is file in java?

551


What do you mean by chromounits in java8?

523


worst case complexities of Quick sort and Merge sort.

589


What are the principle concepts of oops?

530