TestNG Priority Method

package testNG;
 
import org.testng.annotations.Test;
import org.openqa.selenium.By;
import org.openqa.selenium.Keys;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.chrome.ChromeDriver;
import org.testng.annotations.BeforeTest;
 
public class TestNG_Priority {
WebDriver driver;
 
@Test(priority=1)
public void seleniumlearn() {
}
@Test(priority=4)
public void google() {
driver.get("https://www.google.com");
driver.findElement(By.name("q")).sendKeys("TestNG");
driver.findElement(By.name("q")).sendKeys(Keys.ENTER);
}
@Test(priority=0)
public void techlearn() {
 
}
@Test(priority=3)
public void gmail() {
driver.get("https://www.gmail.com");
}
@Test(priority=2)
public void facebook() {
}
 
 
@BeforeTest
public void beforeTest() {
System.setProperty("webdriver.chrome.driver", "G:\\Lib\\chromedriver.exe");
driver = new ChromeDriver();
driver.manage().window().maximize();
}
 
}