The conversation between human and AI assistant.
What is the use of static keyword in Java?
Can you give an example?
Sure, for instance, if you have a class called "Math" and you want to create a method that returns the square of a number, you can declare the method as static, like this: 
public static int square(int num) { return num*num; }