The short answer is no, most of the time whales and sharks will avoid attacking each other. Most often, the whale will flee from the shark but there have been cases of whales attacking sharks. Usually Sharks are not interested in attacking whales because whales are too big for a shark to eat. The whale lives in the ocean so their predators are the killer whales and orcas.
Crocodiles are aggressive predators, but they can go months or even a year without eating. A crocodile’s bodily system is designed in such a way that it can conserve all of the energy it gets from its meal. Crocs can even shut down and survive for a long time on their own tissue in extreme circumstances.
Sharks may bring up thoughts of thrashing great whites or the meg, but some of them are actually rather friendly. There are approximately 500 species of sharks, some of which allow divers to approach and swim with them. Even though sharks cannot be as friendly as dogs, they can occasionally show agreeable behavior.
Megalodons are the largest sharks of all time, but basking sharks are the second-largest modern-day shark (also fish). However, both sharks are fascinating predators, and although one was a vicious carnivorous, the other one is a filter feeder. Still, there are certain fundamental ways in which both sharks are different.
Sharks usually do not have any natural predators, but sometimes, smaller shark species are preyed upon by orcas and large sharks. In some instances, sharks are also attacked by dolphins. Sharks, in turn, prey on invertebrates, fishes, smaller sharks, and penguins. Some sharks also prefer eating plankton, algae, and other plant-based food items.