Both were badly burned.
Officials say they were rushed to the burn unit at St. Barnabas Medical Center in West Orange in critical condition.
The men were reportedly living in the basement apartment, which investigators suspect was illegally converted.
Other residents of the house, including two children, were treated for smoke inhalation.
The fire was quickly put out and the fire is under investigation.