What is the difference between abstract class and interface
Ingeniero Java Interview Questions
27,760 ingeniero java interview questions shared by candidates
why static ia not allowed in method overriding
We had to guess what the output of a program will be after compilation. Would it throw up any errors or compile just fine.
How is abstraction different from encapsulation
Q. Questions on real time project
Discuss Composite Pattern with the example of a File System
Override equals for ArrayList
- Can you use an object as a key in HashMap? If it possible, how to use it? - Explains IoC, DI, and Spring MVC
Question related to Spring Framework and Java. There was an online test before I went for in person interview.
1)Assume Threaded Environment, what can go wrong in code and how to fix it. -your given a main, interface, and a global final static variable 2)Overriding ArrayList equal operator I believe? -Basically in main you add an object- array.add(new object(3,4)), then attempt to remove - array.remove(new object(3,4)). -You can't edit the main, so you have to override the equals operator in ArrayList in the class method 3)Overriding Hashmap equal operator and hashcode -Similar logic, you cant edit the main so edit the method. 4)Threading questions, basically a this.wait() -Did not get a good look at this question, but review your Operating Systems. Has to do with thread locking i believe (rusty myself here need to look over it) 5)Write out the ArrayList class. -Write out the ArrayList data structure -getsize -addElement -Remove Element -One more which I forgot -This question is actually very easy but a little time consuming, I did not get to it sadly
Viewing 1081 - 1090 interview questions