Posts

Showing posts from September, 2021

Java Interview Questions

  Hey Shouters!! In this tutorial, we will discuss the most important java interview questions of Java Language. These questions are simple and easy to remember. Read the answers carefully. :: Some Basic Definitions in Programming :: Problem : A Problem can be apparently defined as a question raised for inquiry, consideration, or solution. Instruction: A specific task in a computer processor can be done via Instruction. Statement: An instruction written in a high-level language. A statement directs the computer to perform a specified action. Program: A computer program is a collection of instructions that can be executed by a computer to perform a specific task. Task: In computing, a task is a unit of execution or a unit of work. Process: In computing, a process is the instance of a computer program that is being executed by one or many threads. It contains the program code and its activity Thread: Threads are a way for a program to divide (termed "split") it

ArrayList

Image
  Hey Shouters!! Today we have come up with the ArrayList in Java with good examples to understand. Some main points covered in this article. These are given below: Introduction ArrayList Class Declaration Advantages Methods A Simple Example Synchronization Of ArrayList Convert ArrayList to LinkedList Program Introduction Before discussion of ArrayList some basic concepts are discussed here. The java.util package contains one of Java's most powerful subsystems i.e. The Collection Framework. The Collection Framework contains interfaces and classes to provide state-of-the-art technology for managing groups of objects. Add, Remove, Search etc. activities can be performed using Java collection framework. The collection framework can contain 4 basic things i.e. Lists, Sets, Maps, Queues. One interface can extend another interface, similarly, The List interface extends Collection interface to define an ordered collection with duplicates allowed.

Java Collection Framework

Image
  Hey Shouters!! Today we have come up with the Java Collection Framework. It is based on some concepts rather than programming. Read these points carefully. What is a Java Collection Framework? A Java collection framework provides an architecture to store and manipulate a group of objects. Interfaces, Classes and Algorithms are included in the Java collection framework. One of Java's most powerful subsystem contained by the "java.util" package is the Collection Framework. The developers can access prepackaged data structures as well as algorithms to manipulate data from the Java collection framework. Add objects, Remove objects, Search for an object, Retrieve/get object, Iterate through the collection framework. These activities can be performed within Java Collection framework. . Java Collection Framework Hierarchy : In this above image, blue part refers to the different interfaces and the yellow part defines the classes.