Meaning : Trying out various means or theories until error is satisfactorily reduced or eliminated.
Example :
He argued that all learning is a trial-and-error process that resembles biological evolution.
Meaning : Relating to solving problems by experience rather than theory.
Example :
They adopted a trial-and-error procedure.