Java 8 has been released in March 2014, so it’s one of the hot topics in java interview questions. If you answer this question clearly, it will show that you like to keep yourself up-to-date with the latest technologies. Java 8 has been one of the biggest releases after Java 5 anno...
It’s a great design question and asked a lot in java interviews. This post provides all the differences between abstract class and interface. When should we use interface over the abstract class and vice versa? The post also explains how to use abstract class and interface to create a flexi...
This core Java question is followup of previous question and expecting candidate to write Java singleton using double checked locking. Remember to use volatile variable to make Singleton thread-safe. 12. Can you write code foriteratingover hashmap in Java 4 and Java 5 ? Tricky one but he ma...
Core Java - Interview Questions and Answers for 'Arraylist' - 27 question(s) found - Order By Newest Very frequently asked. Favorite question in Walk in Drive of many Indian service companies. Q1. What is the difference between ArrayList and LinkedList ? Core Java Ans. Underlying data...
@vinit Sainisuggesed a very good point related to this core java interview question There is a difference when looking at exception handling. If your tasks throws an exception and if it was submitted with execute this exception will go to the uncaught exception handler (when you don't have ...
9.2JDBC 2.0 Core API provides the Batch Updates functionality to the java applications. 9.3Java applications can now use the ResultSet.updateXXX methods. 9.4New data types - interfaces mapping the SQL3 data types 9.5Custom mapping of user-defined types (UTDs) ...
To parse the log lines, a regular expression should do fine, but as noted, this is not the core part of the question. If you are short on time during the interview, tell the candidate to assume they already have a LogEntry class or similar, with suitable getters....
It is not possible to include every possible question in this guide, so I have included some good resources at the end of this interview guide. 1. Core Java Questions 1.1.Core Java Interview Questions Generally, each interviewer will start with core Java concepts before jumping onto more advanc...
This Java collection interview questions is I guess most popular one. Most of Java programmer who has at least 2 years of experience has seen this question on core Java or J2EE interview. Well there are many difference between them but most important isthread-safety,HashMapis not thread-safe...
We can't capture it bycatchCapture viacatchis not recommended. For example, Java virtual machine running error (Virtual MachineError), virtual machine memory is not enough error (OutOfMemoryError), class definition error (NoClassDefFoundError) and so on. When these exceptions occur, the Java ...