• Home
  • Old Papers
    • Placement Paper
    • Exam Papers
  • Govt. Jobs 2017
  • Current Affairs
  • IBPS
  • Admission 2017
  • Higher study

Old Question Papers

Like – Get Updates




You are here: Home / Uncategorized / Java Interview Question and Answers
Latest Govt Jobs 2017 <

Java Interview Question and Answers

January 23, 2019 By oldquestionpapers 2

Java Interview Questions and Answers.
What is Collection API ?

The Collection API is a set of classes and interfaces that support operation on collections
of objects. These classes and interfaces are more flexible, more powerful, and more
regular than the vectors, arrays, and hashtables if effectively replaces.
Example of classes: HashSet, HashMap, ArrayList, LinkedList, TreeSet and TreeMap.
Example of interfaces: Collection, Set, List and Map.
Is Iterator a Class or Interface?
What is its use?

Answer: Iterator is an interface which is used to step through the elements of a
Collection.
What is similarities/difference between an Abstract class and Interface?

Differences are as follows:
Interfaces provide a form of multiple inheritance. A class can extend only one other class.
Interfaces are limited to public methods and constants with no implementation. Abstract
classes can have a partial implementation, protected parts, static methods, etc.
A Class may implement several interfaces. But in case of abstract class, a class may
extend only one abstract class. Interfaces are slow as it requires extra indirection to to
find corresponding method in in the actual class. Abstract classes are fast.
Similarities:
Neither Abstract classes or Interface can be instantiated.

Java Interview Questions – How to define an Abstract class?

A class containing abstract method is called Abstract class. An Abstract class can’t be
instantiated.
Example of Abstract class:
abstract class testAbstractClass {
protected String myString;
public String getMyString() {
return myString;
}
public abstract string anyAbstractFunction();
}

.pdf FileDownload Click here

Need More? Click Here

  • Online Mock Test Reasoning and Aptitude, GK etc- Free
  • Current Affairs 2012-13 MCQ Question Answers  

Click Here for All New Updates | Last Updated Pages  | New Arrival 

See Also……

  • Previous Year Old Question Paper
  • Current Affairs 2019 MCQ Question Answers
  • Latest Govt Job Recruitment 2019-20
  • General Knowledge (GK) Question Answers 2019
  • Computer Knowledge For Bank Question Answers
  • Child Development and Pedagogy Question Answers
  • Reasoning and Aptitude Question Answer

Get Daily Alert

Top Posts

  • CSIR Life Science Question Paper with Answers June And December 2016
  • Current Affairs Question Answers (MCQ) 3rd December 2016
  • DUET PhD in Psychology Question Paper with Answer Keys 2019 Download PDF
  • DUET PhD in Physical Education Question Paper with Answer Keys 2019 Download PDF
  • DUET PhD in MILLS Question Paper with Answer Keys 2019 Download PDF
  • DUET PhD in Microbiology Question Paper with Answer Keys 2019 Download PDF
  • DUET PhD in Law Question Paper with Answer Keys 2019 Download PDF
  • DUET PhD in informatics IIC Question Paper with Answer Keys 2019 Download PDF
  • DUET PhD in Home Science Question Paper with Answer Keys 2019 Download PDF
  • DUET PhD in Genetics Question Paper with Answer Keys 2019 Download PDF

List of Entrance

  • Polytechnic Entrance 2019
  • BBA Entrance 2019
  • BCA Entrance 2019
  • LLB Entrance 2019
  • Medical Entrance 2019
  • Engineering Entrance 2019
  • B.Sc. Nursing Entrance 2019
  • M.Sc Entrance 2019
  • MBA Entrance 2019
  • MCA Entrance 2019
  • B.Ed Entrance 2019
  • B.El.Ed Entrance 2019
  • M.Ed Entrance 2019
  • PHD Entrance 2019
  • PGCET Entrance 2019
  • PSU Exam 2019
  • Interview Question Answers
Copyright © 2019