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

Can a class declared as private be accessed outside it’s package?

756


Explain about collection interface in java?

765


When we should use serialization?

786


Write code of any action class?

728


Is main is a keyword?

784


What happens when you invoke a thread’s interrupt method while it is sleeping or waiting?

763


Does .length start 0 java?

752


What is class and object in java?

753


Is minecraft java edition free?

843


what is meant wrapper classes?

823


What type of language is java?

753


Why is core java important?

778


What are packages in java?

885


how to create multithreaded program? Explain different ways of using thread? When a thread is created and started, what is its initial state? Or extending thread class or implementing runnable interface. Which is better? : Java thread

798


How many types of exception can occur in a java program?

710