![]() Related Questions Latest Answer : Initially it didnt as java uses "extends" word for inheritance but it didnt allow us to extend more then one class.So the concept of "interface" came which is like abstrct class but with strictness that methods will only be declared at that place & have ... Tags : Inheritance Latest Answer : multiple inheritance is not allowed in java because to avoid naming collisions. ex:- if a class inherit two classes and let the two parent(base) classes have a method with same name. then child class will inherit only one of them , a naming collision ... Tags : Inheritance Latest Answer : Yes ... Latest Answer : B'coz there is a possibility of ambiguity while calling the the function if same function is exists in both the super classes. ... Tags : Inheritance Tell me o/p of the mentioned code fragment.String s1 = "shailesh";String s2="shailesh";System.out.println(s1.equals(s2));System.out.println(s1==s2); Answer is truetrueEvery time we make any string constant same memory referenced will be assigned if the string constant is same. That's why both obj. s1 and s2 refer to same memory. View Question | Asked by : Shailesh What is the difference between equals() method and == operator.when we use 2 same strings for finding of whether both strings r equal or not by using these two,it will give same answers.i.e true and true.so what is the main defference between equals() and ==. Read Answers (2) | Asked by : haritha A) Daemon thread is a low priority threadB) It runs intermittently in the backgroundC) It does the garbage collection operation for the java runtime system.D) All of the above Latest Answer : All of the above(D) is correct answer. ... A) TrueB) FalseExplanation: It is not possible. A) FalseB) True Latest Answer : False. The word synchronized can also be used to make a block of code synchronized.Eg: synchronized(object) { ............code........... }Raghu. ... A) TrueB) False Latest Answer : I choose the answer as false but i got it wrong ...
Sponsored Links
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||