-
-
What is OOP?
Object Oriented Programming is programming paradigm, that works on the following principals:- Abstraction
- Inheritance
- Polymorphism
- Encapsulation
-
What is Abstraction?
Abstraction is the process of hiding certain details and showing only essential information to the user. -
What is Polymorphism?
Polymorphism is a concept by which we can perform a single action in different ways. ... So polymorphism means many forms. -
What is Inheritance?
Inheritance is a mechanism in which one object acquires all the properties and behaviors of a parent object. -
What is immutable Object and how to create a immutable class?
-
-
-
What is JDK,JRE JVM?
-
Difference between prasing and type casting?
-
What is constructor? difference between constructor and method?
-
What are access specifiers in java ?
-
Write a program to check given string is Anagram or not?
-
-
-
What is Functional interface?
-
Abstract class Vs Interface
-
Overloading Vs Overriding
-
What is marker interface?
-
Write a program to delete duplicate elements from the array and display then ascending order
-
-
-
ArrayList Vs LinkedList
-
HashMap Vs HashTable
-
HashMap vs ConcurrentHashMap
-
How HashMap works internally?
-
Write a program to implement custom hashmap
-
-
-
Callable Vs Runnable
-
Synchronized block vs method
-
What are the different ways to create thered in java?
-
How to run multiple threads simltaniously
-
Write a program to create singleton class
-
-
-
What is design patterns?
-
finally Vs finalize
-
What are the SOLID principals?
-
What is the default capacity of LinkedList, HashMap ?
-
Write a program for builder and factory patterns
-
-
-
What is Streams?
-
Inner classes Vs Lambdas
-
What is difference between stream vs parallel stream?
-
Future vs CompletableFuture
-
Write a program to convert list of string to map
where key is string and length of the string is value using streams
-
-
-
Where do you volatile keyword?
-
volatile vs transient
-
How to store custom object as key in HashMap?
-
What is exception? What are different ways to create custom exception
-
Write a program to create custom exception class?
-
-
-
What is serialaization?
-
What is serial version id?
-
this Vs Super in java?
-
What are different ways to create object?
-
Write a program to create custom annotation?
-
-
-
How garbage collectors work in JVM?
-
What is major GC and minor GC?
-
What is class loader?
-
How to increase memeory size while running java applicaation?
-
Write a program to get max paid employee of the organization using java stream?
-
Saturday, April 24, 2021
Interview Questions - Java
Subscribe to:
Posts (Atom)
Spring Boot 3 : JWT with SecurityFilterChain, AuthorizeHttpRequests, RequestMatchers
pom.xml <?xml version="1.0" encoding="UTF-8"?> <project xmlns="http://maven.apache.org/POM/4.0.0"...
-
Installation of MongoDB The executable file needs to be downloaded from: https://www.mongodb.com/download-center?jmp=nav#communit...
-
Form to add multiple rows: <! DOCTYPE html> <%@ page language = "java" contentType = "text/html; cha...