What are the similarities between Buddha and Mahavira?

What are the similarities between Buddha and Mahavira?