Create a class named Year that contains data fields to hold the number of months in a year and the number of days in a year. Include a constructor that sets the number of months to 12 and the number of days to 365, and get and set methods for each field.

b. Design an application that instantiates one object of each class and displays all the data.

To create the Year class, you can follow these steps:

Step 1: Define the Year class with the required data fields and methods.

```java
public class Year {
private int numberOfMonths;
private int numberOfDays;

public Year() {
this.numberOfMonths = 12;
this.numberOfDays = 365;
}

// Getters and Setters
public int getNumberOfMonths() {
return numberOfMonths;
}

public void setNumberOfMonths(int numberOfMonths) {
this.numberOfMonths = numberOfMonths;
}

public int getNumberOfDays() {
return numberOfDays;
}

public void setNumberOfDays(int numberOfDays) {
this.numberOfDays = numberOfDays;
}
}
```

Step 2: Design an application to instantiate one object of the Year class and display its data.

```java
public class YearApplication {
public static void main(String[] args) {
// Instantiate a Year object
Year year = new Year();

// Display the data
System.out.println("Number of Months: " + year.getNumberOfMonths());
System.out.println("Number of Days: " + year.getNumberOfDays());
}
}
```

When you run the `YearApplication` class, you will see the output:

```
Number of Months: 12
Number of Days: 365
```

This demonstrates the instantiation of one object of the Year class and displays its data.