class Student{
public **static** void main (String[]arg){
}
}
Here why we are using static keyword to start a main method. From my knowledge I can say
Static will get memory and it can retain its value Is that only reason for using Static key work in main. Explain in detail thanks
.