5 years ago in Java Package And Interface

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
Loading...
Next Question

Overall Stats

Attempted 224
Correct 42
Incorrect 91
Viewed 91

Answers

Guest
Guest
Omansh Kothari
Omansh Kothari - 1 day ago

Omansh Kothari is saying Interfaces specifies what class must do but not how it does. is correct answer

Vaibhav Bisht
Vaibhav Bisht - 4 weeks ago

Vaibhav Bisht from Dehradun, India is saying All variables are static and methods are public if interface is defined pubic is correct answer

Zo Go
Zo Go - 4 weeks ago

Zo Go from Casablanca, Morocco is saying Interfaces are specified public if they are to be accessed by any code in the program. is correct answer

Awa Kone
Awa Kone - 4 weeks ago

Awa Kone from Berrechid, Morocco is saying Interfaces are specified public if they are to be accessed by any code in the program. is correct answer

AHMED SOULIMANI
AHMED SOULIMANI - 1 month ago

AHMED SOULIMANI from Casablanca, Morocco is saying All variables in interface are implicitly final and static. 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 keyword is used while using interface ?

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

Which of these interface must contain a unique element?

  • [A] Set
  • [B] List
  • [C] Array
  • [D] Collection

Which of these access specifiers can be used for an interface?

  • [A] Public
  • [B] Protected
  • [C] private
  • [D] All of the mentioned