Section 10 of the Civil Procedure Code discusses the doctrine of res sub judice, which prevents a court from trying a case that involves issues directly and substantially the same as those in a previously filed pending case between the same parties. Section 11 discusses the doctrine of res judicata, which prevents a court from trying a case that involves issues directly and substantially the same as those that have already been finally decided in a former case between the same parties. The key difference is that res sub judice applies to pending matters, while res judicata applies to already adjudicated matters.