All India Exams
Home AptitudeBankEngineeringEnglishGKInterviewOnline TestPlacement PapersReasoning
  • Home
  • Aptitude
  • Bank
  • Engineering
  • English
  • GK
  • Interview
  • Online Test
  • Placement Papers
  • Reasoning

Interfaces Questions And Answers

Here you can find Interfaces Questions and Answers.

Why Interfaces Questions and Answers Required?

In this Interfaces Questions and Answers section you can learn and practice Interfaces Questions and Answers to improve your skills in order to face technical inerview conducted by organisations. By Practicing these interview questions, you can easily crack any Exams interview.

Where can I get Interfaces Questions and Answers?

AllIndiaExams provides you lots Interfaces Questions and Answers with proper explanation. Fully solved examples with detailed answer description. All students, freshers can download Interfaces Questions and Answers as PDF files and eBooks.

How to solve these Interfaces Questions and Answers?

You no need to worry, we have given lots of Interfaces Questions and Answers and also we have provided lots of FAQ's to quickly answer the questions in the Competitive Exams interview.

Interfaces Questions & Answers

1. Which of these keywords is used to define interfaces in Java?

Interfaces Questions & Answers

2. Which of these can be used to fully abstract a class from its implementation?

Interfaces Questions & Answers

3. Which of these access specifiers can be used for an interface?

Interfaces Questions & Answers

4. Which of these keywords is used by a class to use an interface defined previously?

Interfaces Questions & Answers

5. Which of the following is correct way of implementing an interface salary by class manager?

Interfaces Questions & Answers

6. Which of the following is incorrect statement about packages?

Interfaces Questions & Answers

7. Which of the following package stores all the standard java classes?

Home EngineeringComputer Science & EngineeringJava Questions and AnswersInterfaces

Interfaces - Java Multiple Choice Questions and Answers

This is the java programming questions and answers section on "Java Interfaces" with an explanation for various interview, competitive examination and entrance test. Solved examples with detailed answer description, explanation are given and it would be easy to understand.

Java Interfaces Questions

Online Test Name Java Interfaces
Exam Type Multiple Choice Questions
Category Computer Science Engineering Quiz
Number of Questions 07
1. Which of these keywords is used to define interfaces in Java?
  • A. interface
  • B. Interface
  • C. intf
  • D. Intf
  • View Answer
  • Workspace
  • Report
  • Discuss

Answer & Explanation

Answer: Option A

Explanation:

interface

Workspace

Report Error


2. Which of these can be used to fully abstract a class from its implementation?
  • A. Objects
  • B. Packages
  • C. Interfaces
  • D. None of the Mentioned.
  • View Answer
  • Workspace
  • Report
  • Discuss

Answer & Explanation

Answer: Option C

Explanation:

Interfaces

Workspace

Report Error


3. Which of these access specifiers can be used for an interface?
  • A. Public
  • B. Protected
  • C. private
  • D. All of the mentioned
  • View Answer
  • Workspace
  • Report
  • Discuss

Answer & Explanation

Answer: Option A

Explanation:

Access specifier of interface is either public or no specifier. When no access specifier is used then default access specifier is used due to which interface is available only to other members of the package in which it is declared, when declared public it can be used by any code.

Workspace

Report Error


4. Which of these keywords is used by a class to use an interface defined previously?
  • A. import
  • B. Import
  • C. implements
  • D. Implements
  • View Answer
  • Workspace
  • Report
  • Discuss

Answer & Explanation

Answer: Option C

Explanation:

interface is inherited by a class using implements.

Workspace

Report Error


5. Which of the following is correct way of implementing an interface salary by class manager?
  • A. class manager extends salary {}
  • B. class manager implements salary {}
  • C. class manager imports salary {}
  • D. None of the mentioned.
  • View Answer
  • Workspace
  • Report
  • Discuss

Answer & Explanation

Answer: Option B

Explanation:

class manager implements salary {}

Workspace

Report Error


  • «
  • 1
  • 2
  • »

Related Topics:

  • Input Output Streams
  • Arrays
  • Threads
  • Exception Handling
  • Strings
  • Collections
  • java.util Package
  • Applets
  • java.io Package
  • java.lang Package

Mock Tests & Online Quizzes

  • Aptitude Online Test

  • Reasoning Online Test

  • GK Online Test

  • English Online Test

  • RRB Mock Test

  • RBI Mock Test

  • Free SBI Mock Test

  • IBPS Mock Test FREE

  • SSC Mock Test

  • CAT Exam Mock Test

  • GATE Mock Test

  • IT Courses Quiz

Questions and Answers

  • Aptitude Questions
  • Verbal Reasoning Questions
  • Non Verbal Reasoning
  • Logical Reasoning Questions
  • Data Sufficiency Questions
  • Data Interpretation
  • eLitmus Sample Papers
  • ECE Questions and Answers
  • EEE Questions and Answers
  • Verbal Ability Questions
  • GK Questions

Programming Quiz

  • C Programming
  • C++ Programming
  • PHP Programming
  • Java Programming
  • Python Programming
  • DataScience MCQ
  • Hadoop MCQ
  • Mongo DB MCQ
  • MySQL MCQ

Interview Questions

  • Java Interview Questions
  • .Net Interview Questions
  • Networking Interview Questions
  • C Language Interview Questions
  • C++ Interview Questions
  • Testing Interview Questions
  • Android Interview Questions
  • HR Interview Questions
  • Group Discussion Topics

Our Sites

AView.in

© by AllIndiaExams.in. All Rights Reserved | Copyright | Terms of Use & Privacy Policy