> For AI agents: read the machine-readable documentation index at [https://corpuslaw.us/llms.txt](https://corpuslaw.us/llms.txt) or the single-file full reference at [https://corpuslaw.us/llms-full.txt](https://corpuslaw.us/llms-full.txt).

# 42 Pa.C.S. § 3151 — Oath of office.

- **Citation**: 42 Pa.C.S. § 3151
- **Node Type**: section
- **Jurisdiction**: Pennsylvania (state)
- **Code Body**: Pennsylvania Consolidated Statutes (Aug. 2026 snapshot) (Pa.C.S.)
- **Official Source**: [https://www.palegis.us/statutes/consolidated/view-statute?txtType=HTM&ttl=42](https://www.palegis.us/statutes/consolidated/view-statute?txtType=HTM&ttl=42)
- **Canonical URL**: [https://corpuslaw.us/codes/pennsylvania/title-42/chapter-31/section-3151](https://corpuslaw.us/codes/pennsylvania/title-42/chapter-31/section-3151)
- **Semantic URL**: [https://corpuslaw.us/codes/pennsylvania/title-42/chapter-31/section-3151](https://corpuslaw.us/codes/pennsylvania/title-42/chapter-31/section-3151)

## Hierarchy

Title 42 > Chapter 31

## Text

Each judicial officer shall, before entering on the duties of his office, take and subscribe the following oath or affirmation before a person authorized to administer oaths: "I do solemnly swear (or affirm) that I will support, obey and defend the Constitution of the United States and the Constitution of this Commonwealth and that I will discharge the duties of my office with fidelity." Any person refusing to take the oath or affirmation shall forfeit his office. A judicial officer shall be sworn upon his appointment or election, and after each retention election, and thereafter need not be sworn in any matter referred to him. Cross References. Section 3151 is referred to in section 2301 of this title.
