6 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 348
Correct 48
Incorrect 98
Viewed 202

Answers

Guest
Guest
Poonam Bharambe
Poonam Bharambe - 10 hours ago

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

Shubham Rajurkar
Shubham Rajurkar - 11 hours ago

Shubham Rajurkar is saying All variables are static and methods are public if interface is defined pubic is correct answer

Mina Aitlhaj
Mina Aitlhaj - 2 days ago

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

Amy Deva
Amy Deva - 4 weeks ago

Amy Deva is saying All variables in interface are implicitly final and static. is correct answer

Sumit kumar Singh
Sumit kumar Singh - 1 month ago

Sumit kumar Singh is saying All variables are static and methods are public if interface is defined pubic is correct answer

Related Questions

Which of these interface must contain a unique element?

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

Which of these interface handle sequences?

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

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

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