Need to use public,static keywords in main function?
Answer Posted / psreddy
public access modifier we declared then that class visible
to every where and access to any where
bcoz if we write any number business logic classes but
we have to write only one execution logic class for all
these business logic classes
that is why always execution logic class as public
and also there is need of writing static key word
bcoz the execution logic executes only once
other wise we will get runtime exeption
Is This Answer Correct ? | 5 Yes | 1 No |
Post New Answer View All Answers
What is object english?
Why collection doesn’t extend cloneable and serializable interfaces?
What is int argc char * argv?
Explain covariant method overriding in java.
What is purpose of keyword void?
What are different types of control structures?
Is sizeof a keyword in java programming?
Howto get an object that will perform date & time calculations then format it for output in some different locales with different date style.can ne1 tel me the answer of this question.pls
What is a numeric string?
Is c better than java?
What is collection class in java?
What data structures are used to perform recursion?
What do you mean by singleton class in java?
What are variable names?
describe synchronization in respect to multithreading? : Java thread