A generalized mass formula developed for both the non-strange normal nuclei and strange hypernuclei can estimate masses of hypernuclei containing Λ, ΛΛ, Σ, and Ξ hyperon(s). The neutron and proton driplines for hypernuclei are predicted and existence of some exotic hypernuclei beyond the normal neutron and proton driplines are suggested. This generalized mass formula was named the "Samanta formula" by Botvina and Pochodzalla and used to predict relative yields of hypernuclei in heavy-ion collisions.