Novel polybenzoxazines consisting of electron-donating triphenylamine derivatives and electron-withdrawing 4,4'-diphenyl sulfone moieties were successfully prepared by the thermally induced ring-opening reaction of the corresponding PB precursors and utilized for memory devices.