What are the limitations for static method?
Answer Posted / vijayakumar chinnasamy
Static Method:
a. Access only static type data (static type instance
variable).
b. Call only static method ,if non-static then compile
time error.
c.No need the class object to call the static method.
d.Cant use this and super keyword otherwise compile time
error.
| Is This Answer Correct ? | 50 Yes | 4 No |
Post New Answer View All Answers
when a request is generated from apache tomcat 5.5 and goes to oracle 10g or mysql,,, how the oracle or mysql reads the request as apache is a web server and oracle 10g is application server? when the oracle 10g provides response, how the apche tomcat reads it???
What is the main function in java?
Can a class have more than one object?
Can we make a constructor final?
Difference between comparator and comparable in java?
How to sort numbers in java without array?
Does unicode support all languages?
hi am an engineering student and my next plan is for ms in either in us or australia i got my passport but i dont know anything bout visa can u give brief idea 1)How to get prepared for visa and 2)How to apply for top universities and 3)How to pay the fee and so on These all are basic questions plz give me a clear idea
What are the different types of collections in java?
When will we prefer to use set and list in java and why?
How do you achieve singleton?
Differentiate between == and equals().
What is a return in java?
What value is a variable of the string type automatically initialized?
What is the base class of all classes?