I have two packages in my project: odp.proj and odp.proj.test. There are certain methods that I want to be visible only to the classes in these two
Without putting the access modifier in front of the method you say that it is package private.
Look at the following example.
package odp.proj;
public class A
{
void launchA() { }
}
package odp.proj.test;
public class B
{
void launchB() { }
}
public class Test
{
public void test()
{
A a = new A();
a.launchA() // cannot call launchA because it is not visible
}
}