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. |
|
| ||||
Interview Questions and Answers for 'Rakuten' - 3 question(s) found - Order By Rating | ||||
Frequently asked Generic Question. | ||||
| ||||
Ans. [Open Ended Answer] Usually answered stating your keen interest in the role offered and challenges and opportunities the role offers. | ||||
Help us improve. Please let us know the company, where you were asked this question : | ||||
Like Discuss Correct / Improve   Asked in 42 Companies   frequent | ||||
Related Questions | ||||
Describe, in general, how java's garbage collector works ? | ||||
What is a ConcurrentHashMap ? | ||||
What is Generalization and Specialization in terms of casting ? | ||||
Which java frameworks have you used ? | ||||
What the Bean scopes provided by Spring ? | ||||
What are the various Auto Wiring types in Spring ? | ||||
When should we use prototype scope and singleton scope for beans ? | ||||
When do we generally get this database error - integrity constraint violated - parent key not found ? | ||||
Write a program for Coin Changer application ? | ||||
When do we generally get the database error - Unique Constraint Violated ? | ||||
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 | ||||
Related Questions | ||||
How does volatile affect code optimization by compiler? | ||||
how is the internal code for the "volatile" implemented ? | ||||
What are the different ways to avoid multi Threading related problems in Java ? | ||||
Can we make array volatile in Java ? | ||||
Have you heard of volatile Table in Teradata ? | ||||
what is volatile and atomic | ||||
Very frequently asked in different variations. Frequently asked in Deloitte ( 2 feedback ) , HCL Tech ( 3 feedback ), TCS and Coginizant (CTS) | ||||
| ||||
Ans. If the Object value will not change, use String Class because a String object is immutable. If the Object value can change and will only be modified from a single thread, use StringBuilder because StringBuilder is unsynchronized(means faster). If the Object value may change, and can be modified by multiple threads, use a StringBuffer because StringBuffer is thread safe(synchronized). | ||||
Sample Code for String Sample Code for StringBuffer Sample Code for StringBuilder | ||||
Help us improve. Please let us know the company, where you were asked this question : | ||||
Like Discuss Correct / Improve  java   string class   string   stringbuilder   stringbuffer   String vs StringBuffer   String vs StringBuilder   String vs StringBuilder vs StringBuffer   StringBuffer vs stringBuilder Asked in 29 Companies basic   frequent | ||||
Try 3 Question(s) Test | ||||
Related Questions | ||||
Difference between == and .equals() ? | ||||
Why is String immutable in Java ? | ||||
Why Char array is preferred over String for storing password? | ||||
What are different ways to create String Object? Explain. | ||||
What is a String Pool ? | ||||
How does making string as immutable helps with securing information ? How does String Pool pose a security threat ? | ||||
How is string object immutable if we can concat a string to it ? | ||||
What is StringJoiner ? | ||||
Which of the following is false about main method ? a. It should be declared public and static b. it should have only 1 argument of type String array c. We can override main method d. We can overload main method | ||||