Question 15
Consider the code given below.
class Developer{ private String name; private String dept;
//CODE BLOCK
public void getDetails() { System.out.println(name+" "+dept); }}public class Test { public static void main(String[] args) { Developer obj = new Developer("XYZ", "Java"); obj.getDetails(); }}Choose the correct option(s) to fill in place of CODE BLOCK so that the output is:
XYZ Java