Is it possible to define two methods that have the same name but different parameters?

Yes. It is called Method Overloading in Java