What is the use of static keyword in "public static void
main()"
Answer Posted / p.r.gupta
the use of static is for static methods we need not to
create any object,so internally jvm calls like classname.method
Is This Answer Correct ? | 13 Yes | 0 No |
Post New Answer View All Answers
Which class is used by server applications to obtain a port and listen for client requests?
What are the ways to instantiate the class class?
What are the types of casting?
How would you format a date in java? I.e. In the ddmmyyy format?
How java uses the string and stringbuffer classes?
What is meant by method overriding?
Can we use this () and super () in a method?
What is function and method in java?
Can a method be static?
What is diamond operator in java?
What are mutable classes?
How many types of methods are there?
Explain the difference between collection api and stream api in java8?
What is scope & storage allocation of static, local and register variables? Explain with an example.
How does arraylist size increase in java?