How to judge whether two objects collide?

Are there any flags to see whether two objects are collide with each other?