自問自答(じもんじとう)

Japanese vocabulary

Meaning: answering one's own question; wondering to oneself; soliloquizing; soliloquising

See it used in real works