Any dogs will get along provided they are neutered, introduced correctly and are well trained and socialised.

However, if you just stick 2 male un-neutered, un-socialised dogs in a room together you're looking at a seriously dangerous situation.

www.qaws.org