Java Private Access Modifier Error Saat kami menyebutnya

// Java program to illustrate error while
 using class from different package with
 private modifier
package one;

class A
{
private void display()
	{
		System.out.println("Welcome to softhunt.net");
	}
}

class B
{
public static void main(String args[])
	{
		A obj = new A();
		// Trying to access private method
 of another class
		obj.display();
	}
}
Outrageous Ostrich