5 years ago in Introduction To Java

Which is the valid declarations within an interface definition?

[A] public double methoda();
[B] public final double methoda();
[C] static void methoda(double d1);
[D] protected void methoda(double d1);
Loading...
Next Question

Overall Stats

Attempted 283
Correct 75
Incorrect 81
Viewed 127

Answers

Guest
Guest
akshay kharat
akshay kharat - 3 days ago

akshay kharat from Pune, India is saying static void methoda(double d1); is correct answer

Tsega Asresa Mengistu
Tsega Asresa Mengistu - 4 days ago

Tsega Asresa Mengistu from Dessie, Ethiopia is saying protected void methoda(double d1); is correct answer

Utkarsh Sharma
Utkarsh Sharma - 4 weeks ago

Utkarsh Sharma from Dehradun, India is saying static void methoda(double d1); is correct answer

Vaibhav Bisht
Vaibhav Bisht - 4 weeks ago

Vaibhav Bisht from Dehradun, India is saying static void methoda(double d1); is correct answer

AHMED SOULIMANI
AHMED SOULIMANI - 1 month ago

AHMED SOULIMANI from Casablanca, Morocco is saying public double methoda(); is correct answer

Related Questions

Runnable is

  • [A] class
  • [B] method
  • [C] Interface

single line comment start with

  • [A] /*
  • [B] //
  • [C] /
  • [D] none

Interfaces helps in which type of inheritance

  • [A] Multiple interface
  • [B] Multilevel Interface
  • [C] Hirerchical Interface
  • [D] None