Java Programming and Technical Numerical Ability Profit and Loss

"a man saved two bears from forest. everyday he plays with them and enjoyed a lot. one day he played a game with them and place a pair of bears in a place surrounded on all sides by a wall. the initial pair of bears(male and female) are new born. all bear pairs are not fertile during their first month of life but give birth to one new malee/female pair at the end of second month and every month thereafter. how many pair of bears will be there after n months."

Read Solution (Total 2)

Java Other Question

Which is the best driver out of below??
a)JDBC-ODBC(Type1)
b)native API(Type2)
c)Network protocol(Type3)
d)native protocol(Type4)
Does the compiler creates a default constructor in interfaces?