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 fulfill requirement b, you will need to create two classes: Year and MainClass.

1. Year Class:
```java
public class Year {
private int numOfMonths;
private int numOfDays;

public Year() {
this.numOfMonths = 12;
this.numOfDays = 365;
}

public int getNumOfMonths() {
return numOfMonths;
}

public void setNumOfMonths(int numOfMonths) {
this.numOfMonths = numOfMonths;
}

public int getNumOfDays() {
return numOfDays;
}

public void setNumOfDays(int numOfDays) {
this.numOfDays = numOfDays;
}
}
```

2. MainClass:
```java
public class MainClass {
public static void main(String[] args) {
Year year = new Year();

System.out.println("The number of months in a year is: " + year.getNumOfMonths());
System.out.println("The number of days in a year is: " + year.getNumOfDays());
}
}
```

When you run the `MainClass`, it will create an instance of `Year` class, set the number of months to 12 and number of days to 365 using the constructor, and then display the values using the get methods.

Output:
```
The number of months in a year is: 12
The number of days in a year is: 365
```

To create a class named Year with the required data fields and methods, you can follow these steps:

Step 1: Create a new file named Year.java.

Step 2: Define the class named Year and declare the data fields, constructor, and methods.

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

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

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 3: Design an application to create objects of the Year class and display the data. Create a new file named YearApp.java.

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

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

Step 4: Compile and run the application.

This will create an object of the Year class and display the number of months and days in a year.