There are currently 4 different serotypes of Dengue virus known to science. Each time someone get infected and recovers, the individual will be protected by a lifelong immunity from further infection against that specific serotype and that serotype only.
Consequent infection from different serotype not only will infect the individual but may also cause a more serious or severe disease progression.