Which statements are true?
package com.java2s; class Main { void method1() { } public void method2() { } private void method3() { } protected void method4() { } } package com.java2s; class demo { public void someMethod(String[] parameters) { Main sc = new Main(); sc.method1(); sc.method2(); sc.method3(); sc.method4(); } }
C
As the classes are on the same package and all of the methods are visible except for the private method.