Interview Questions and Answers - Order By Newest 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   Q1962. How will you implement your own custom hashmap and linkedlist ? Data Structure
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  Ans. The array index starts with 0 because program locates an element using the expression ( BaseAddress + ( Index * size of array Element ), where index is used as an offset. As the starting address is actually the address of first element, the index of first element is used as 0 and so on. Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve   Q1964. Why does an array need continuous memory locations and not Linked List ? Data Structure
Ans. Array needs continuous memory location because it need to provide random access of it's elements which is not required for Linked List.
Array index acts as an offset from the base address and hence can retrieve the respective element using the expression Base Address + ( Index * Element Size ). This expression could only hold true if the elements are in continuous memory location. Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve   Q1965. What is the difference between dynamic programming and the brute force algorithm? Algorithm
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   Q1966. Design a Program to clone an object and all it's children.
Design
This question was recently asked at 'Bloomberg'.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  code  coding  cloning  design pattern   cloning design pattern Asked in 1 Companies Q1967. Tell something about Dependency Injection and it's drawbacks. In which situation, you may not like to use dependency injection ? Design
This question was recently asked at 'Bloomberg'.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  dependency injection Asked in 1 Companies Q1968. What is setter injection ? Spring
Ans. Setter Injection in Spring is a type of dependency injection in which the framework injects the dependent objects into the client using a setter method. Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve  setter injection   dependency injection Asked in 2 Companies Q1969. Difference between final and finally Core Java
Ans. final can be used for variables , methods and class. A final variable cannot be changed , a final method cannot be overridden , a final class cannot be inherited.
Finally is a block which is used after Try and catch, a finally block is always executed. Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve   Asked in 1 Companies Q1970. Given a String with letters , numbers and special characters , extract Tokens from it. The rules for Token extraction are ac follows
1. Should for token of all characters till a number or special character is found
2. Should form token of all numbers till a character or special character is found
3. Special character in itself is a token
4. Ignore white spaces
For example - Bob Said "He is here"
should result in
Bob A
Said A
" S
He A
is A
here A
" S
where a is specifying alphabet and S as special character Design
This question was recently asked at 'Bloomberg'.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  code  coding  string Asked in 1 Companies Q1971. Design a Whats app like messaging application. architecture
This question was recently asked at 'Bloomberg'.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 Q1972. What is immutability and What are it's disadvantages ? Design
This question was recently asked at 'Bloomberg'.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  immutable  immutability objects   immutability Asked in 1 Companies Q1973. What will happen if there is an exception in Java finally block ? Core Java
Ans. The regular behavior of exception handling will occur. It will look for any immediate catch handler and if none is provided, it would be transmitted to the callers until a catch handler is found or it's out of main function. Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve  exceptions  finally Q1974. What is the default execution method in Java? Core Java
Ans. public static void main(String[] args) Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve  main method This question was recently asked at 'PegaSystems'.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 Q1976. how is the internal code for the "volatile" implemented ? Core Java
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 Q1977. Design database schema for Facebook like application. Database
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  database design Asked in 1 Companies expert Q1978. How Bitly shortens the URL ? Web
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  web application   url Asked in 1 Companies   rare Q1979. Write Java code that would cause deadlock ? Core Java
Ans. https://howtodoinjava.com/java/multi-threading/writing-a-deadlock-and-resolving-in-java/ Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve  multithreading  threads  deadlock Asked in 1 Companies intermediate Q1980. How would you design a Thread Pool ? Design
Ans. By using Executor Framework , we can create Thread pool Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve  Thread Pool Asked in 1 Companies expert Q1981. Suppose you have 8 balls, one of them is either have more/less weight, In how many least possible iterations would you find that ball? Design
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  puzzle  design Asked in 1 Companies Ans. Hashing is a technique to calculate the hash code for any object Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve   Asked in 1 Companies Q1983. Draw uml for singleton pattern. Design
This question was recently asked at 'deutche bank'.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  design pattern   singleton Asked in 1 Companies Q1984. Can you name few Java packages which you frequently used ? Core Java
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   Asked in 1 Companies Q1985. Can you tell something about Web security ? Web
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  web security Asked in 1 Companies Q1986. If we have width of an html element as 100px and a border of 10 px. What will be the effective width of the element ? Will the border start after 100 px or after 90 px ? Html
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   Asked in 1 Companies Q1987. Can you create html and css for a rectangular shape button with width 10px. CSS
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   Asked in 1 Companies Q1988. What is the difference between Java OR operator and Java script OR operator ? JavaScript
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   Asked in 1 Companies Q1989. What are the advantages of using cascade style sheets or css ? CSS
Ans. We can enforce consistent UI and can have single point of change for UI components.' Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve   Asked in 1 Companies Q1990. How do you debug Javascript code ? JavaScript
Ans. Possible Answer - I use either Firebug or Chrome Developer tool. Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve   Asked in 1 Companies