Java Booth

Tutorials, Examples and Interview Questions

  • Collections
  • Contact Us
  • About Us.

Category: Interview questions

Iterable vs Iterator interfaces in Java.

4 April 2020 KeshavCollections, Interview questions

Iterable Interface Iterator Interface Represents a collection that can be traversed using foreach loop. Allows to iterate over some other collection. The class that implements the iterable interface has to override iterator() method. hasNext() and next() methods of Iterator interface are to be overridden by class implementing it. Does not store the current state. Stores the…

Read More→

Comparable vs Comparator interface in Java

2 April 2020 KeshavCollections, Interview questions, Java Core, OCA

Comparable and Comparator both are interfaces and can be used to sort collection elements. There are many differences between Comparable and Comparator interfaces that are mentioned as follows: Comparable in Java Comparator in Java Comparable interface is used to sort the objects with natural ordering. Comparator in Java is used to sort attributes of different objects.…

Read More→

String’s immutability in Java explained

2 April 2020 KeshavInterview questions, Java Core

String is immutable in Java. An immutable class is simply a class whose instances cannot be modified. All information in an instance is initialized when the instance is created and the information can not be modified. There are many advantages of immutable classes. This article summarizes why String is designed to be immutable. This post illustrate the immutability concept…

Read More→

25 Most Common OOPS Interview Questions in Java

5 November 2018 KeshavInterview questions, OOPS

1.What is meant by Object Oriented Programming? OOP is a method of programming in which programs are organized as cooperative collections of objects. Each object is an instance of a class and each class belong to a hierarchy. 2.What is meant by Encapsulation? Encapsulation is the process of compartmentalizing the elements of an abstraction that defines…

Read More→

Posts navigation

Previous 1 2

Recent Posts

  • Exploring Java 21: Features, Criticism, and Deprecation
  • Optional class in java 8 explained with examples.
  • Java vs. Kotlin: Which Language Should You Use for Android Development in 2023
  • The Most In-Demand Java Skills for 2023
  • Java vs. Python: Which One Should You Learn?
  • Top 10 Secrets of Java Programmers that You Need to Know!
  • The Most Common Mistakes Java Developers Make – And How to Avoid Them!
  • Java vs. JavaScript: What’s the difference?
  • Java program for finding Factorial of a number.
  • Java program for printing Fibonacci series.
  • What is the difference between Abstraction and Encapsulation in OOPS in Java?
  • How to install Java 8 on Linux Operating System? Here is the step by step guide.
  • How to install Java 8 on Apple macOS Operating System? Here is the step by step guide.
  • How to install Java 8 on Microsoft Windows Operating System? Here is the step by step guide.
  • Features of Java 8
  • All you need to know about Java 8.
  • Tips for freshers for cracking the interview
  • What is ‘static’ keyword in Java? Explained with example.
  • Abstraction in Java explained with example.
  • Polymorphism in Java explained with example.
  • Inheritence in Java explained with example.

Recent Comments

Archives

  • November 2023
  • January 2023
  • April 2020
  • March 2020
  • November 2018

Categories

  • Collections
  • General
  • How to
  • Interview questions
  • java 21
  • Java 8
  • Java Core
  • java programs
  • OCA
  • OCP
  • OOPS
  • Top 10
  • 2023 (33)
  • 2020 (17)
  • 2018 (1)
  • What are the Object Oriented programming (OOPs) concepts in Java?
  • 16 January 2023
  • What is the difference between Abstraction and Encapsulation in OOPS in Java?
  • 17 January 2023
  • Inheritence in Java explained with example.
  • 17 January 2023
Copyright © All rights reserved.
Blog Kit by WP Charms