It depends upon the judgment. Judgments based on intentional misconduct, injury caused by voluntary intoxication, child support obligations and guaranteed student loans, for example, are not ordinarily dischargeable.

If you file for bankruptcy an "automatic stay" comes into effect which stops litigation. It is possible for the bankruptcy court to resolve a claim within the bankruptcy, or to lift the stay so that court proceedings can continue.