It is possible only when cubical expansion of the vessel equals to cubical expansion of the liquid in it.