Explanation:
Oil molecules are non-polar, and they can't form hydrogen bonds. Dispersion forces are present in C12H26 (oil).
H20 (water) are polar, has hydrogen bonds, it also has dipole-induced dipole and London dispersion forces.
The difference between them is that adhesion refers to the clinging of unlike molecules and cohesion refers to the clinging of like molecules.
In C12H26 (oil) the adhesive forces are stronger than the cohesive forces as a result, oil molecules tend to stick to the walls of the container.
In H2O (water) the cohesive forces is greater than the adhesive forces, as a result water molecules tend to stick together.