Question: I am new to eclipse and Java.Please find the code below.I have created maven project in eclipse.But i could not call a method from the class which is in another package.Please find the code .But this code works fine in netbeans.

```html
FILE 1 : 

package config;
public class ActionKeywords {

         public static void helo( )
         { ............
  }
}

FILE 2 with another package:

package executionEngine;
import config.ActionKeywords;
public class driver{

    ActionKeywords.helo(); /////////////ERROR //////////

}
```

Answer: 
As you are trying to call a stataic method, you do not need an object instance but call the method directly like:

```
public void myMethod() {
    ActionKeywords.helo();
}

```

Read more about static fields and methods here: <https://docs.oracle.com/javase/tutorial/java/javaOO/classvars.html>
As `helo` is `static`, it is good practice to call it using a static modifier:

```
ActionKeywords.helo();

```

instead of using an object reference.