Question: Below is an example using the new operator st1 = new Student(); Which of the options below is wrong? declares a reference for the object


Below is an example using the new operator st1 = new Student(); Which of the options below is wrong? declares a reference for the object st1 allocates memory for an object called st1 returns a reference for the object st1 public initial() { System.out.println(this.name.substring(0, 1)); }
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
