The convex lens behaves as a converging lens, if it is kept in a medium with refractive index less than the refractive index of the lens. It behaves like a diverging lens when it is kept in transparent medium with greater refractive index than that of lens.
e.g. : Air bubble in water behaves like a diverging lens.