Java - Packages and Access Control
Given the code below, what will be the output?
package pkg1;
public class Parent {
protected int value = 5;
}
package pkg1;
public class Other {
public static void main(String[] args) {
Parent p = new Parent();
System.out.println(p.value);
}
}