Answer Posted / a kumar
Make the class as final..
like
public final class String
| Is This Answer Correct ? | 7 Yes | 2 No |
Post New Answer View All Answers
what is use of functional interface in java 8?
Why do we need wrapper classes?
explain autoboxing in java?
what is difference between equals and ==?
How do you execute a thread in java?
Can an interface implement another interface?
How are java objects passed to a method and what are native methods?
How does java enable high performance?
What is the difference between comparison done by equals method and == operator?
What are the features in java?
How many return statement are allowed in a function?
Why do we need hashmap in java?
What is the generic class?
What design pattern you have used in your project? I answered Factory pattern, how it is implemented? What are its advantage? Do know about Abstract Factory?
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.