Computer Science, asked by anuj, 1 year ago

Why main method is static?

Answers

Answered by AJAYMAHICH
1
The Java Main Method. In Java, you need to have a method named main in at least one class. The following is what must appear in a real Java program. public static void main(String [ ] args) { UrRobot Karel = new UrRobot(1, 1, East, 0); // Deliver the robot to the origin (1,1), // facing East, with no beepers.
Similar questions