Can interface be private in java?
Answer / Ekant Srivastava
No, interfaces cannot be declared as private in Java. They are by default public and must be accessed from outside their declaring class or another interface.
| Is This Answer Correct ? | 0 Yes | 0 No |
there are N number of matchboxes numbered 1...N.each matchbox contain various number of stick.Two player can alternatevely pick some amount of stick from the higest stick containing box . The player is condidered win if there is no stick after his move.Find the final move so that the move player win. Note:In case the number of stick is equal ,pick the stick from the higest numbered box.
whats is inheritance?
15 Answers CTS, HCL,
Can we override protected method in java?
What is a parameter in a function?
How to sort an array from smallest to largest java?
What is data object example?
Can an interface be final?
Can we override static methods in java?
What is the purpose of assert keyword used in jdk1.4.x?
Why does java does not support multiple inheritance? Explain
What is a parameter in java?
Explain the concept of hashtables?