In literature, the subject is referred to as a topic which acts as a foundation for a literary work. Most of the time, this is confused with the definition of theme. The theme is the opinion expressed on the subject. So basically, both are entirely different. Hope this answers your question.