Java Collections have come through a long way with the usage of Generics and Concurrent Collection classes for thread-safe operations. It also includes blocking interfaces and their implementations in java concurrent package. Some of the benefits of collections framework are; Reduced development effort ...
One of the classic interview Questions asked on Java collection framework, This is pretty old and programmer who has been working in Java for 4 to 6 years must have seen this question before. WellIterator and ListIterator in Javais a new way to iterator collection in Java and provides abilit...
Multithreading and Concurrency is a hot topic in Java interviews. It’s good to have good knowledge of Threads in Java. This post covers 30+ interview questions for Java Threads. I also recommend you to readJava Thread Tutorialto gain good knowledge on Threads. 6.Java Exception Handling Interv...
There are different memory areas allocated by JVM such as Heap, Stack, Method Area,PC Registers, and Native Method Stack. If I run outof parade with zero args on the command line, the value stored in the String array passed into the main() method is blank or NULL? The Stringarray will...
The Collection in Java is a framework that provides an architecture to store and manipulate the group of objects. Java Collections can achieve all the operations that you perform on data such as searching, sorting, insertion, manipulation, and deletion.Java Collection means a single unit of ...
The Native Method Interface is a programming framework. It allows Java code which is running in a JVM to call by libraries and native applications. 9) Native Method Libraries Native Libraries is a collection of the Native Libraries(C, C++) which are needed by the Execution Engine. Software Co...
Hi, Recently, I use reflection technology on EJB to get/set properties of a bean. We need it because we need to encapsulate data in a...
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 ...
132 . Are the constructors in an object invoked when it is de-serialized? 133 . Are the values of static variables stored when an object is serialized? Collections 134 . Why do we need collections in Java? 135 . What are the important interfaces in the collection hierarchy? 136 . What ...
We can also say that it is a lightweight inversion of control(IoC) container and aspect-oriented container framework for the Java platform. Spring handles the infrastructure so that we can focus on our application development. It was created by Rod Johnson. In 2003 Spring came into existence....