I have developed a "Quiz application in java", which have many features like quiz conduction, instant reporting features, students can post their doubts and all.
I want to maintain the log of the number of students requested for quiz, the number of students that submitted the response, the total active students and some other details.
I am using a Global class which has static variables to keep these details. Is it correct way to maintain this or should I want to use the Singleton design pattern ?
Kindly give me pros and cons of both and which one to use and when?