Seriously guys the smart alec comments don't help anyone. This thread should belong in the beginners section but being told your question is stupid can be really off putting for newbies. Not all of us have a university degree in electrical engineering or any engineering experience at all you know.
OP, what exactly is it you want to check out? Yes a comparator is something you can make with an opamp but as others have said, not all opamps should be used for this because they will oscillate. If you want to learn about opamps try circuits specifically for opamp applications, such as differential amplifiers or negative feedback gain etc. If you have a scope and a cheap function gen (even a couple of dollars on ebay can get you a cheap function generator) try hooking up the opamp to provide gain on various signals and have a go at using the opamp as an integrator etc. As you learn have a go at understanding the calculations and opamp properties such as output swing.
Most opamps don't like it if your input voltage is close or higher than the positive input rail, also do not make your input any less than the negative rail. For example if you have the negative rail at ground, do not provide the opamp with -2V etc. Some are better than others, but all this stuff should be in the datasheet if you hunt for it.
Have fun!