What is the use of static keyword in "public static void
main()"
Answer Posted / sadikhasan palsaniya
static method can call without using Object name and can
call using Class name so JVM can use main method for execute it.
so it is require static keyword in main method. without
static JVM cant run Program.
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
For ease of programming you can consider the maze as a 2D array with colors represented by below integer and characters (in capital letters). • B - Black • W -White • G- Green • R- Red R B W B W W W W W W B W B B W W W W W W W B W B W W W B W W W W B B W W W B W W W B W W B B B B W B W B W W B W W W B W W W B B B W W B W W W B W W B W B W W W B W B W W W W B B W W W W B W W W W W G Shortest Route Problem: • Solution that finds the shortest Route between Red and Green White will have 1 Weight. Red and Green carry no weights. Shortest path is the path with less weight when you add up the weights in the path.
Write java program to reverse string without using api?
What is serial version uid and its importance in java?
Can we overload the methods by making them static?
Explain throw keyword in java?
What is difference between wait and notify in java?
Can string be considered as a keyword?
What are java threads?
Why is core java important?
Write a program to solve producer consumer problem in java?
Explain the term virtual machine?
What is the size of an array?
What is the use of hashmap in java?
What is the difference between a local variable and an instance variable?
What is a get method?