An endoscope suitable for autoclaving in accordance with the present invention has a barrier that separates an interior from an exterior. When the barrier is located at a predetermined position, consideration is taken into a displacement of the barrier between the position of the barrier observed before start of autoclaving and the position thereof observed after completion of the autoclaving during which predetermined pressure is applied and a thermal load is imposed.