Posts

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.

FAQ

      1. HOW TO USE JAVA COMPILER ONLINE MODE?

MCQ

  1. Which of the following option leads to the portability and security of Java? The applet makes the Java code secure and portable Bytecode is executed by JVM Use of exception handling Dynamic binding between objects Ans:  Bytecode is executed by JVM     2. Which of the following is not OOPS concept in Java? Inheritance Encapsulation Polymorphism Compilation Ans: Compilation     3. Which concept of Java is a way of converting real world objects in terms of class? Polymorphism Encapsulation Abstraction Inheritance Ans:  Abstraction     4. Which component is used to compile, debug and execute java program? JVM JDK JIT JRE Ans:JDK     5. What is use of interpreter? They convert bytecode to machine language code They read high level code and execute them They are intermediated between JIT and JVM It is a synonym for JIT Ans:  They read high level code and execute them     6. Which of the following is a valid declaration of an object of class Box? Box obj = new Box(); Box obj = new Box; o

NOTES