You have a file University.java and you have a driver class…

You have a file University.java and you have a driver class named Driver.java. Fill in the correct visibility modifiers so that the comments in the main method are upheld. public class Driver {    public static void main(String[] args) {     University t = new University(); // each of the lines below is run independently     System.out.println(t.numBuildings);    // compiles and runs     System.out.println(t.getAverageGpa()); // compiles and runs     System.out.println(t.averageGpa); // compile error    }} —— in a separate file in a different package/directory ——— public class University {   1 int numBuildings;   2 double averageGpa;   3 double getAverageGpa() {       return averageGpa;    }   /** no-argument constructor implemented **/}   1  :[vis1]   2  :[vis2]   3  :[vis3]

Fill in the blanks for the method signature of a Deep Copy c…

Fill in the blanks for the method signature of a Deep Copy constructor for the Candle class. public class Candle {     private String scent;     private double radius;     private int height;     /* Valid constructor header that takes in all variables*/ {         scent = smell;         radius = candleBase;         height = candleHeight;     }  /** Deep Copy Constructor **/ 1 2 3 ( 4 ) {   /** body implemented **/ }}   1  :[1]   2  :[2]   3  :[3]   4  :[4]

Given the code below, what is printed?  public class Operati…

Given the code below, what is printed?  public class Operations {   public static void main(String[] args) {        int a = 6;        int b = method1(a);        System.out.print(a + “,”);        System.out.print(b);     }    public static int method1(int b) {        int c = b * 2;        b = b + 4;        return c;    } } 

Fill in the blanks for the method signature of a Deep Copy c…

Fill in the blanks for the method signature of a Deep Copy constructor for the Plant class. public class Plant {     private String type;    private int height;     private boolean seedStage;     /* Valid constructor header that takes in all variables*/ {        type = plantType;         height = plantHeight;         seedStage = seed;     } /** Deep Copy Constructor **/ 1 2 3 ( 4 ) {   /** body implemented **/ }}   1  :[1]   2  :[2]   3  :[3]   4  :[4]