package abc ;
class Trying
{
Trying ()
{
System.out.println("hello");
}
}
public class trying {
public static void main(String[] args) {
new Trying () ;
}
}
In this when I change the name of class from Trying to some other name it works , but here it says :
Error: Could not find or load main class abc.trying /Users/name/Library/Caches/NetBeans/8.2/executor-snippets/run.xml:53: Java returned: 1 BUILD FAILED (total time: 0 seconds)
Why is this happening ? I didn't find such case in any of the questions already asked .