Methods declared as static have several restrictions:1) They can only call other static methods.2) They must only access static data.3) They cannot refer to this or super in any way Which of these are TRUE?

A) 1 and 2
B) 1 and 3
C) 2 and 3
D) 1, 2 and 3

Showing Answers 1 - 13 of 13 Answers

supriya ahire

  • Mar 23rd, 2006
 

Ans is :(c)

b'coz static methods can call static as well as non static methods.

Regards,

Supriya Ahire

  Was this answer useful?  Yes

gopal

  • Oct 17th, 2006
 

D is correct becase static methods r ddeclare only inside of class method so static variables r used only in static methods.

  Was this answer useful?  Yes

vtheivamani

  • Dec 20th, 2006
 

ans:d...static method cant call the non static method(call the method from another method using this key word)...this keyword doesnt supported by the static mehod

  Was this answer useful?  Yes

u bala sushmitha

  • Jan 16th, 2015
 

D

  Was this answer useful?  Yes

priya

  • Jun 3rd, 2016
 

1,2 and 3

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions