Pergunta de entrevista da empresa Integral Development

1. How can you say java is platform independent. 2. How Dependency Injection Works 3. Whats the diff. between TreeMap and HashMap (you should not explain implementations and have to explain only theory :) ) 4. Can we assign parent class object to child class reference ? if not why ? 5. Write a program to verify given strings are anagrams or not ? You should consider all the edge cases, time complexity and space complexity and should be as minimum as much as possible. (Once you implement the code,he asked time complexity of a function and explained the same and he didn't understand) 6. Write q SQL query to print how many employees having same age group in a given table?