Interview Questions and Answers for 'Alcatel lucent' - 3 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. Q1. What is the difference between final, finally and finalize() ? Core Java
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   final vs finally vs finalize Asked in 61 Companies basic   frequent Try 4 Question(s) TestRelated Questions Difference between final and effectively final ? Why is effectively final even required ? 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 What is a final method ? Which keyword is used to provide explicit access of a code block to single thread ?
a. Transient
b. Final
c. Explicit
d. Synchronized Enums cannot be declared .. What is a Final Variable ? Should we override finalize method ? Will the static block be executed in the following code ? Why ? Can we override compareTo method for Enumerations ? Ans. It is a continuous integration tool written in Java. Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve  java   jenkins Asked in 6 Companies Basic   frequent Related Questions What are the various ways in which build can be scheduled in Jenkins ? What is the relation between hudson and Jenkins ? What is a stable build ? What is the difference between Maven, Ant and Jenkins ? Which SCM tools Jenkins supports ? What you do to make sure that your project doesn't break in Jenkins ? What you do when you see a broken build for your project in Jenkins ? What is continuous integration ? What is the difference between broken and unstable build ? Q3. Design Texas Hold Em poker game Design
This question was recently asked at 'Alcatel Lucent'.This question is still unanswered. Can you please provide an answer. Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve   Asked in 1 Companies Related Questions Difference between == and .equals() ? Why is String immutable in Java ? Explain the scenerios to choose between String , StringBuilder and StringBuffer ?
or
What is the difference between String , StringBuilder and StringBuffer ? What are the difference between composition and inheritance in Java? Explain OOPs
or
Explain OOPs Principles
or
Explain OOPs Concepts
or
Explain OOPs features
or
Tell me something about OOPs What is a Lambda Expression ? What's its use ? What are different ways to create String Object? Explain. Why Char array is preferred over String for storing password? Does garbage collection guarantee that a program will not run out of memory? What is the difference between final, finally and finalize() ?