The application predicts the expected salary based on years of experience using a linear regression model. The model is trained on a dataset of years of experience and corresponding salary values.