5 years ago in Java Package And Interface

Which of the following is correct way of implementing an interface salary by class manager?

[A] class manager extends salary {}
[B] class manager implements salary {}
[C] class manager imports salary {}
[D] None of the mentioned.
Loading...
Next Question

Overall Stats

Attempted 353
Correct 185
Incorrect 64
Viewed 104

Answers

Guest
Guest
Satyam Pratap singh - 4 months ago

hemant singh you are not from delhi.

Vaibhav Bisht
Vaibhav Bisht - 3 weeks ago

Vaibhav Bisht from Dehradun, India is saying class manager implements salary {} is correct answer

Assaad Amine
Assaad Amine - 3 weeks ago

Assaad Amine from Casablanca, Morocco is saying class manager implements salary {} is correct answer

Zo Go
Zo Go - 3 weeks ago

Zo Go from Casablanca, Morocco is saying class manager implements salary {} is correct answer

Awa Kone
Awa Kone - 3 weeks ago

Awa Kone from Berrechid, Morocco is saying class manager implements salary {} is correct answer

Related Questions

Which of these keywords is used to define interfaces in Java?

  • [A] interface
  • [B] Interface
  • [C] intf
  • [D] Intf

Which of the following is incorrect statement about packages?

  • [A] Interfaces specifies what class must do but not how it does.
  • [B] Interfaces are specified public if they are to be accessed by any code in the program.
  • [C] All variables in interface are implicitly final and static.
  • [D] All variables are static and methods are public if interface is defined pubic

Which of these can be used to fully abstract a class from its implementation?

  • [A] Objects
  • [B] Packages
  • [C] Interfaces
  • [D] None of the Mentioned.

Which keyword is used while using interface ?

  • [A] extend
  • [B] implements
  • [C] throw
  • [D] throws