Check out example codes for "java variables in annotations". It will help you in understanding the concepts better.

Code Example 1

import org.junit.Test;
import static org.junit.Assert.*;

public class MyTestClass
{
    private static final int TEST_TIMEOUT = 60000; // one minute per test

    @Test(timeout=TEST_TIMEOUT)
    public void testJDK()
    {
        assertTrue("Something is very wrong", Boolean.TRUE);
    }
}

Learn ReactJs, React Native from akashmittal.com