What is the need to declare main() method as static in Java?
Answer Posted / juhi
If main method is static it should not be able to access any
other methods(other than static methods). but this is not
the case y?
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
What is stateless and stateful in java?
What is property file in java?
Name primitive java types.
Write a program for the problem: the array of inetegers indicating the marks of the students is given, U have to calculate the percentile of the students aaccording to this rule: the percentile of a student is the %of no of student having marks less then him. For eg: suppose Student Marks A 12 B 60 C 80 D 71 E 30 F 45 percentile of C = 5/5 *100 = 100 (out of 5 students 5 are having marks less then him) percentile of B = 3/5*100 = 60% (out of 5, 3 have markses less then him) percentile of A = 0/5*100 = 0%.
How can I write a program that takes command line input?
What is hql in java?
Can an application have multiple classes having main method?
What is aop java?
What is cloning in java?
Why do we only use the main method to start a program?
If you’re overriding the method equals() of an object, which other method you might also consider?
What is native class in java?
What is lambda used for?
What is a controller in java?
How can I swap two variables without using a third variable?