Computer Science, asked by shuaibmirzadl6132, 1 year ago

What will be the output of the following program? Type the answer in the correct case. public class MyParameterizedConstructor { private String name; public MyParameterizedConstructor(String str) { this.name=str; System.out.print(name); } public static void main(String a[]) { MyParameterizedConstructor mpc= new MyParameterizedConstructor("constructor"); } }

Answers

Answered by Vintage
0
It should print
constructor
Answered by prathikyaprathu
0

Answer:

rttt

gvvsjdjfjjfkfkfjufjfjjfjcifkrmkfkfj

Similar questions