Fire resistance is determined by a building material's ability to withstand fire conditions. It is most commonly tested by subjecting structural components to standardized fire tests and rating the length of time until failure. Building codes classify construction types based on materials used and required structural fire resistance for safety. Occupancy classifications group buildings by similar fire risks to determine construction requirements.