0% found this document useful (0 votes)
31 views

Java Interview

The document provides links to various Java topics including quantitative aptitude, logical reasoning, verbal ability, interview questions and answers, DBMS interview questions, SQL interview questions, core Java interview questions, and Java interview questions from GeeksforGeeks. It also includes definitions and explanations of Java concepts like final, finalize, method overriding, method overloading, polymorphism, Object class, @Override annotation, serialization, deserialization, strings vs stringbuffer vs stringbuilder, inheritance, exceptions, try/catch blocks, interfaces vs abstract classes, collections framework, threads vs processes, static keyword, OOPs concepts, and differences between lists and sets.

Uploaded by

Sushil Laha
Copyright
© © All Rights Reserved
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
31 views

Java Interview

The document provides links to various Java topics including quantitative aptitude, logical reasoning, verbal ability, interview questions and answers, DBMS interview questions, SQL interview questions, core Java interview questions, and Java interview questions from GeeksforGeeks. It also includes definitions and explanations of Java concepts like final, finalize, method overriding, method overloading, polymorphism, Object class, @Override annotation, serialization, deserialization, strings vs stringbuffer vs stringbuilder, inheritance, exceptions, try/catch blocks, interfaces vs abstract classes, collections framework, threads vs processes, static keyword, OOPs concepts, and differences between lists and sets.

Uploaded by

Sushil Laha
Copyright
© © All Rights Reserved
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 2

Quantitative Aptitude : https://www.javatpoint.

com/aptitude/quantitative
Logical Reasoning : https://www.javatpoint.com/reasoning
Verbal Ability : https://www.javatpoint.com/verbal-ability

Interview Questions and Answers : https://www.javatpoint.com/interview-questions-


and-answers

DBMS Interview Questions : https://www.javatpoint.com/dbms-interview-questions


SQL Interview Questions and Answers :https://www.javatpoint.com/sql-interview-
questions

JAVA INTERVIEW QUESTION :

https://www.javatpoint.com/corejava-interview-questions

https://www.geeksforgeeks.org/java-interview-questions/

final : it is a keyword , it used to define a constent in java


finally : it is a keyword , it is used in exception handling
finalize : it is a method , its called garbage collector . before garbage collector
run , the finalize method was invoked .

# method overriding : when two or more name are same and they are having also same
parameter is called method overriding, it is solved by runt time polymorphism.
# method overloding : when two or more name are same and they are having different
different parameter is called method loading , it is solved by compile time
polymorphism.
# polymorphism :

# what do you know in advanced java


# spring boot : spring boot is a frame work.
# hibernate : hibernating used for retriving data or inserting data into database.
# what is class ?
# what is object ?
# what is blueprint means ?
# what is file input stream and output stream ?
# what is abstraction ?
# what is superclass of all the classes in java ?
: Object class is the root or superclass of the class hierarchy, which is present
in java. lang package.
# what is @override annotation in java ?
# Deserialization ,serialization in java ?
# difference betwn string stringbuffer and string builder ?
# encapsulation ?
# access specifier : public protected private and default ?
# what is collection in java ?
# what is run time exception and compile time exception ?
: A compile-time error(exception) generally refers to the errors that correspond to
the semantics or syntax. A runtime error refers to the error that we encounter
during the code execution during runtime.

# catch block in java ?


: catch block is an exception handler that handles the type of exception indicated
by its argument.
# try block in java ?
A try block is the block of code (contains a set of statements) in which exceptions
can occur; it's used to enclose the code that might throw an exception. The try
block is always followed by a catch block, which handles the exception that occurs
in the associated try block
# difference between interface and abstract class
# collection framework in java ?
: The Collection in Java is a framework that provides an architecture to store and
manipulate the (data).
# what is collection in java ?
:A Collection represents a single unit of objects, i.e., a group.
# What is a framework in Java ?
It provides readymade architecture.
It represents a set of classes and interfaces.
It is optional.

#what is difference between thread and process ?


# what is static keyword in java ?
# what is inherritance ?
# Explain oops concept in java ?
: there are six piller in oops :
* incapsulation
* Polymorphism
* Abstraction
* inherritence
* class
* object

# Difference between list and set ?

https://youtube.com/shorts/4VUqKrnjJo0?si=7k0Zd5qSmY8M8C8M
# Polymorphism :
Polymorphism nothing but an object can have different behaviours is known as
polymorphism.
When I say polymorphism it has derived into two types
1) compile time polymorphism
2) run time polymorphism
The compile time binding between the method calling statement and the method
implementation of overloaded method takes place during the compilation.
Ex:method overloading, constructor overloading
2) the bind between method calling statement and the implementation of overloaded
method takes place during the run time is known as run time polymorphism
Ex:method overriding.
The process of overriding the non static method implementation by sub class non
static method implementation within the sub class object is known as method
overriding
To achieve we have to follow certain rules
^inheritance is mandatory
^the non static method declaration of super class and sub class must be same
^the scope and visiability of subclass non static method declaration with respect
to access modifier must be similar or more than that of super class non static
method.

You might also like