3) Suppose you are a very rich person, having 50 rooms and
you have lost the key for one of the room's. How
effectively you can find this key? (Qs2 and Qs3 are related)

Answer Posted / siddharth

By comparing romm numbers with the key number.

Is This Answer Correct ?    6 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How to use string tokenizer class.

611


What are operators and its types?

566


Difference between ‘is-a’ and ‘has-a’ relationship in java?

533


What is void keyword?

662


What happens if an exception is throws from an object's destructor?

577






How to display all the prime numbers between 1 and 100

494


Under what conditions is an object’s finalize() method invoked by the garbage collector?

571


What is garbage collection? Can it be forced to run?

537


What is java lang object?

521


How do you use nextline in java?

499


how its run?

558


What is sorting in java?

524


What is consumer interface?

552


What are different types of control structures?

483


Can a class extend 2 classes in java?

548