Search Interview Questions | More than 3000 questions in repository. There are more than 900 unanswered questions. Click here and help us by providing the answer. Have a video suggestion. Click Correct / Improve and please let us know. |
|
| |||||||||||
Core Java - Interview Questions and Answers for 'Volatile' - 6 question(s) found - Order By Rating | |||||||||||
| |||||||||||
Ans. If you create table with VOLATILE option, the life of the table will be only for the current session. It will be automatically dropped by Teradata manager once session expires. | |||||||||||
Help us improve. Please let us know the company, where you were asked this question : | |||||||||||
Like Discuss Correct / Improve  teradata  database  volatile table | |||||||||||
| |||||||||||
Ans. Yes, you can make an array (both primitive and reference type array e.g. an int array and String array) volatile in Java but only changes to reference pointing to an array will be visible to all threads, not the whole array | |||||||||||
Help us improve. Please let us know the company, where you were asked this question : | |||||||||||
Like Discuss Correct / Improve  arrays  volatile | |||||||||||
| |||||||||||
Ans. Synchronization, Concurrent classes, Volatile keyword, Implementing concurrent Lock interface, Immutable classes | |||||||||||
Help us improve. Please let us know the company, where you were asked this question : | |||||||||||
Like Discuss Correct / Improve  multithreading  threads  ways to avoid thread related problems  synchronization  volatile  concurrent collections Intermediate | |||||||||||
| |||||||||||
This question was recently asked at 'Symantec'.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  volatile Asked in 1 Companies | |||||||||||
Frequently asked question for intermediate developers. Frequently asked in HCL Technologies and EPAM. | |||||||||||
| |||||||||||
Ans. Volatile is a declaration that a variable can be accessed by multiple threads and hence shouldnt be cached. | |||||||||||
Sample Code for volatile | |||||||||||
Help us improve. Please let us know the company, where you were asked this question : | |||||||||||
Like Discuss Correct / Improve  java   oops   synchronization   volatile   java keywords Asked in 42 Companies intermediate   frequent | |||||||||||
Try 1 Question(s) Test | |||||||||||
Advanced level question usually asked to senior developers , leads and architects. | |||||||||||
| |||||||||||
Ans. Volatile is an instruction that the variables can be accessed by multiple threads and hence shouldn't be cached. As volatile variables are never cached and hence their retrieval cannot be optimized. | |||||||||||
Help us improve. Please let us know the company, where you were asked this question : | |||||||||||
Like Discuss Correct / Improve  java   java keywords   volatile   synchronization   compiler optimization   variable caching   architecture Asked in 3 Companies expert | |||||||||||
| |||||||||||