A written or printed declaration or statement of facts, made voluntarily, and confirmed by the oath or affirmation of the party making it, taken before an officer having authority to administer such oath. Cox v. Stern, 170 111. 442, 48 N. Bl 906, 62 Am. St Rep. 385; Hays v. Loomis, 34 111. 18. An affidavit is a written declaration under oath, made without notice to the adverse party. Code Civ. Proc Cal.