Core Java - Interview Questions and Answers for 'Basic' | Search Interview Question - javasearch.buggybread.com
Questions
Search
List By Company
List By Topic
Legacy
Tests
Repository
DashBoard
Java
Java 8
Java 7
Java Abbreviations
OCJP / SCJP
Class List
New in Java 8
Java Exceptions
Spring Exceptions
Java Enums
Java 8 Lambda
Java 8 java.time
Big Data
Best Of Java
Discussion
Search
Subscribe
Search Interview Questions
More than 3000 questions in repository.
There are more than 900 unanswered questions.
Click here
and help us by providing the answer.
Have a video suggestion.
Click Correct / Improve and please let us know.
Label / Company
Label / Company / Text
Search
Submit Question
Interview Questions and Answers
- Order By Rating
Frequently asked.
Q301.
What should a class do if its implementing an interface ?
Core Java
Ans. It should either implement all interface methods or declare unimplemented methods as abstract.
Help us improve. Please let us know the company, where you were asked this question
:
Like
Discuss
Correct / Improve
 interfaces
Asked in 1 Companies
Basic
 
frequent
Correction
Duplicate of Another Question
Company where this question was Asked
Suggestion
Try 1 Question(s) Test
Interface can only have ...
Member elements and Methods.
Static Variables and Static Methods.
Static Final Variables and Instance Method Declarations.
Member Elements , Instance Methods, Static variables and Static Methods.
Related Questions
Differences between abstract class and interface ?
What are the different uses of Interfaces in Java ?
Why can't we have diamond problem with interfaces ?
Why do we need Thread class even in case we execute thread using runnable interface ?
What is the difference between List, Set and Map ?
or
What are the different Java Collections Interfaces ?
What are Marker Interfaces ? Name few Java marker interfaces ?
Can we declare interface methods as private ?
What is comparator interface used for ?
What is the use of runnable interface if we can always create a new thread using Thread class ?
Which of the following doesn't extend Collection interface ?
Q302.
What should a class do if its extending an abstract class ?
Core Java
Ans. It should either implement the abstract methods or re-declare them abstract.
Help us improve. Please let us know the company, where you were asked this question
:
Like
Discuss
Correct / Improve
 abstract class
Asked in 2 Companies
Basic
 
Frequent
Correction
Duplicate of Another Question
Company where this question was Asked
Suggestion
Related Questions
Differences between abstract class and interface ?
Difference between Abstract and Concrete Class ?
If an Abstract class has only abstract methods, What's the difference between such a class and an interface ?
What are the design considerations while making a choice between using interface and abstract class ?
How is Abstraction implemented in Java ?
Why can't we create an instance of abstract class ? Why is it restricted by compiler ?
Difference between Base Class, Derived Class , Abstract Class and Concrete Class ?
What is an abstract class ?
Shall we use abstract classes or Interfaces in Policy / Strategy Design Pattern ?
Will this code Work ? If not , Why ?
Q303.
What is a package and what are its advantages ?
Core Java
Ans. Package is a namespace that organizes a set of related classes.
Advantages of Packages
1. Better Organization of classes.
2. Saves from the problem of duplicate names as duplicate class names are allowed across different packages.
Help us improve. Please let us know the company, where you were asked this question
:
Like
Discuss
Correct / Improve
 package  advantages of packages
Asked in 1 Companies
Basic
Correction
Duplicate of Another Question
Company where this question was Asked
Suggestion
Related Questions
Can I import same package/class twice? Will the JVM load the package twice at runtime?
Is it a good practice to use Asterick(*) in import statement to load multiple packages with single import statement ?
Do we need to import java.lang package ?
How can I change the default location of the generated jar when I command "mvn package"?
What is a Cursor ?
Name few classes that are part of java.io package ?
Name few classes that are part of java.lang package ?
Name few classes that are part of java.util package ?
What is the package name for CertStoreParameters class?
Help us and Others Improve. Please let us know the questions asked in any of your previous interview.
Any input from you will be highly appreciated and It will unlock the application for 10 more requests.
Company Name:
Questions Asked: