Similar characteristic among whale and crocodile is that

Both reptiles and mammals have four chambers in the heart. Reptiles are cold-blooded organisms, while mammals are warm-blooded organisms. Three-chambered heart is found in other reptiles, except crocodile.

14