Search Interview Questions
| 2679 questions in repository.|
There are more than 200 unanswered questions.
Click here and help us by providing the answer.
Have a video suggestion.
Click Correct / Improve and please let us know.
|Interview Questions and Answers for 'Cubic web solutions' - 1 question(s) found - Order By Newest|
|Very frequently asked. Favorite question in Walk in Drive of many Indian service companies. Frequently asked in HCL Technologies, TCS and Accenture.|
|Ans. final - constant variable, objects cannot be de-referenced, restricting method overriding, restricting class sub classing.|
finally - handles exception. The finally block is optional and provides a mechanism to clean up regardless of what happens within the try block. Use the finally block to close files or to release other system resources like database connections, statements etc.
finalize() - method helps in garbage collection. A method that is invoked before an object is discarded by the garbage collector, allowing it to clean up its state.
Sample Code for final
Sample Code for finally
Sample Code for finalize
|Help us improve. Please let us know the company, where you were asked this question :|
|Like Discuss Correct / Improve java oops final finally finalize Thomson Reuters WITS Antra Jive MorningStar VanGuard Alcatel Lucent Morningstar A9.com EPAM Nuance SirsiDynix NCR VanGuard Proofpoint Interview Disney Orbitz Worldwide GFI Informatique Canon WITS Simba Technologies Marlabs American Well Global Relay L&T Infotech HCL Technologies Tata Consultancy (TCS) Wipro Infosys Accenture Jive Salesforce Deegit NTT DATA Proofpoint Morningstar Bank Of America Manhattan Associates Optum NorthPoint Nok Nok Labs Simba Technologies Rhino Africa Solutionreach V Soft Consulting EBay Cognizant (CTS) IBM ExactTargetKewill CV Holdings Symphony Cubic Web solutions Star International FatWire Mindteck Dark Horse TrueCaller basic   frequent|
Try 4 Question(s) Test
| Which of the following combination of keywords is illegal in Java ? |
a. static and transient
b. transient and final
c. static and synchronized
d. abstract and final
|Difference between final and effectively final ? Why is effectively final even required ?|
| Which keyword is used to provide explicit access of a code block to single thread ? |
|Enums cannot be declared ..|
|What is a Final Variable ?|
|What is a final method ?|
|Can we override compareTo method for Enumerations ?|
|enums are intrinsically ..|
|When we say final x = 10, is the reference final or the value ?|