Search Java Interview Questions
| 2098 questions in repository.|
There are more than 200 unanswered questions.
Click here and help us by providing the answer.
|Interview Questions and Answers for 'Cv holdings' - 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.|
|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 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 ..|
|Can we override compareTo method for Enumerations ?|
|enums are intrinsically ..|
|What is a Final Variable ?|
|What is a final method ?|
|What is a Final Method ?|