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

java.util Package Questions And Answers

Here you can find java.util Package Questions and Answers.

Why java.util Package Questions and Answers Required?

In this java.util Package Questions and Answers section you can learn and practice java.util Package 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 java.util Package Questions and Answers?

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

How to solve these java.util Package Questions and Answers?

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

java.util Package Questions & Answers

1. Which of these standard collection classes implements a dynamic array?

java.util Package Questions & Answers

2. Which of these class can generate an array which can increase and decrease in size automatically?

java.util Package Questions & Answers

3. Which of these method can be used to increase the capacity of ArrayList object manually?

java.util Package Questions & Answers

4. Which of these method of ArrayList class is used to obtain present size of an object?

java.util Package Questions & Answers

5. Which of these methods can be used to obtain a static array from an ArrayList object?

java.util Package Questions & Answers

6. Which of these method is used to reduce the capacity of an ArrayList object?

java.util Package Questions & Answers

7. Which of these standard collection classes implements a linked list data structure?

java.util Package Questions & Answers

8. Which of these classes implements Set interface?

java.util Package Questions & Answers

9. Which of these method is used to add an element to the start of a LinkedList object?

java.util Package Questions & Answers

10. Which of these method of HashSet class is used to add elements to its object?

Home EngineeringComputer Science & EngineeringJava Questions and Answersjava.util Package

java.util Package Multiple Choice Questions & Answers

This is the java programming questions and answers section on "java.util Package" with 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.util Package Questions

Online Test Name java.util Package
Exam Type Multiple Choice Questions
Category Computer Science Engineering Quiz
Number of Questions 45
1. Which of these standard collection classes implements a dynamic array?
  • A. AbstractList
  • B. LinkedList
  • C. ArrayList
  • D. AbstractSet
  • View Answer
  • Workspace
  • Report
  • Discuss

Answer & Explanation

Answer: Option C

Explanation:

ArrayList class implements a dynamic array by extending AbstractList class.

Workspace

Report Error


2. Which of these class can generate an array which can increase and decrease in size automatically?
  • A. ArrayList()
  • B. DynamicList()
  • C. LinkedList()
  • D. DynamicList()
  • View Answer
  • Workspace
  • Report
  • Discuss

Answer & Explanation

Answer: Option A

Explanation:

ArrayList()

Workspace

Report Error


3. Which of these method can be used to increase the capacity of ArrayList object manually?
  • A. Capacity()
  • B. increaseCapacity()
  • C. increasecapacity()
  • D. ensureCapacity()
  • View Answer
  • Workspace
  • Report
  • Discuss

Answer & Explanation

Answer: Option D

Explanation:

When we add an element, the capacity of ArrayList object increases automatically, but we can increase it manually to specified length x by using function ensureCapacity(x)

Workspace

Report Error


4. Which of these method of ArrayList class is used to obtain present size of an object?
  • A. size()
  • B. length()
  • C. index()
  • D. capacity()
  • View Answer
  • Workspace
  • Report
  • Discuss

Answer & Explanation

Answer: Option A

Explanation:

size()

Workspace

Report Error


5. Which of these methods can be used to obtain a static array from an ArrayList object?
  • A. Array()
  • B. covertArray()
  • C. toArray()
  • D. covertoArray()
  • View Answer
  • Workspace
  • Report
  • Discuss

Answer & Explanation

Answer: Option A

Explanation:

Array()

Workspace

Report Error


  • «
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • »

Related Topics:

  • Data Types
  • Interfaces
  • java.io Package
  • Input Output Streams
  • Strings
  • Arrays
  • Serialization
  • Operators
  • Exception Handling
  • Threads

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