Search Interview Questions | Click here and help us by providing the answer. Click Correct / Improve and please let us know. |
|
|||
|
| ||||
| Interview Questions and Answers for 'Trustwave' - 4 question(s) found - Order By Rating | ||||
| ||||
| Ans. int convert(int binaryInt) { int sumValue=0; int multiple = 1; while(binaryInt > 0) { binaryDigit = binaryInt; binaryInt = binaryInt /10; sumValue = sumValue (binaryDigit * multiple); multiple = multiple * 2; } return sumValue; } | ||||
| ||||
| ||||
| Ans. It is a Design Pattern that facilitates loose coupling by sending the dependency information ( object references of dependent object ) while building the state of the object. Objects are designed in a manner where they receive instances of the objects from other pieces of code, instead of constructing them internally and hence provide better flexibility. | ||||
| ||||
| Ans. Java only provides pass by value. | ||||