Sign Up

Have an account? Sign In Now

Sign In

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

You must login to add post.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

mcqoptions.com

mcqoptions.com Logo mcqoptions.com Logo

mcqoptions.com Navigation

  • Home
  • About Us
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • About Us
  • Contact Us
Home/Java
  • Recent Questions
  • Most Answered
  • Answers
  • No Answers
  • Most Visited
  • Most Voted
  • Random
Kasturba Srinivas
Kasturba Srinivas
Asked: 3 years agoIn: Java

Do we have get(Object o) method in HashSet.

(a) True

(b) False

The question was posed to me by my school teacher while I was bunking the class.

Query is from Data Structures-Set in portion java.util – The Collections Framework of Java

Rario
  • 0
  • 1
  • 1
  • 0
Faraz Mathew
Faraz Mathew
Asked: 3 years agoIn: Java

String in Java is a?

(a) class

(b) object

(c) variable

(d) character array

Rario
  • 0
  • 1
  • 3
  • 0
Kamini Kamdar
Kamini Kamdar
Asked: 3 years agoIn: Java

Which of the below is true about java class structure?

(a) The class name should start with lowercase

(b) The class should have thousands of lines of code

(c) The class should only contain those attribute and functionality  which it should; hence keeping it short

(d) The class attributes and methods should be public

Rario
  • 0
  • 1
  • 6
  • 0
Urvashi Sen
Urvashi Sen
Asked: 3 years agoIn: Java

Which of these access specifiers must be used for main() method?

(a) private

(b) public

(c) protected

(d) none of the mentioned

Rario
  • 0
  • 1
  • 6
  • 0
Azhar Dani
Azhar Dani
Asked: 3 years agoIn: Java

What happens if IP Address of host cannot be determined?

(a) The system exit with no message

(b) UnknownHostException is thrown

(c) IOException is thrown

(d) Temporary IP Address is assigned

Rario
  • 0
  • 1
  • 10
  • 0
Aniruddh Tandon
Aniruddh Tandon
Asked: 3 years agoIn: Java

PriorityQueue is thread safe.

(a) True

(b) False

The question was asked during an interview.

My question is from Data Structures-Queue in portion java.util – The Collections Framework of Java

Rario
  • 0
  • 1
  • 3
  • 0
Mukti Agrawal
Mukti Agrawal
Asked: 3 years agoIn: Java

What is the difference between length() and size() of ArrayList?

(a) length() and size() return the same value

(b) length() is not defined in ArrayList

(c) size() is not defined in ArrayList

(d) length() returns the capacity of ArrayList and size() returns the actual number of elements stored in the list

Rario
  • 0
  • 1
  • 3
  • 0
Hari Wadhwa
Hari Wadhwa
Asked: 3 years agoIn: Java

What happens if ServerSocket is not able to listen on the specified port?

(a) The system exits gracefully with appropriate message

(b) The system will wait till port is free

(c) IOException is thrown when opening the socket

(d) PortOccupiedException is thrown

Rario
  • 0
  • 1
  • 4
  • 0
Sunita Saran
Sunita Saran
Asked: 3 years agoIn: Java

Which of these is a method of ListIterator used to  obtain index of previous element?

(a) previous()

(b) previousIndex()

(c) back()

(d) goBack()

Rario
  • 0
  • 1
  • 7
  • 0
Hari Bhardwaj
Hari Bhardwaj
Asked: 3 years agoIn: Java

What does Collections.emptySet() return?

(a) Immutable Set

(b) Mutable Set

(c) The type of Set depends on the parameter passed to the emptySet() method

(d) Null object

Rario
  • 0
  • 1
  • 4
  • 0
Load More Questions

Sidebar

Ask A Question

Stats

  • Questions 500k
  • Answers 393k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Aditi Dugal

    How to approach applying for a job at a company ...

    • 7 Answers
  • Raghavan Prasad Hayer

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Ankita Dinesh Biswas

    What is a programmer’s life like?

    • 5 Answers
  • 47e0c
    47e0c added an answer Correct Answer - Increasing the yield of animals and improving… November 12, 2022 at 9:56 am
  • b6699
    b6699 added an answer Sender\'s addressDateReceivers name and addressSubjectContentYours faithfullyName November 12, 2022 at 9:56 am
  • 10eb8
    10eb8 added an answer Any uncertinity in measurment is known as errorDifference in true… November 12, 2022 at 9:56 am

Top Members

Trending Tags

Class 11 Parabola Polity Polynomials Probability Projectile Protists Quadrilaterals Rario Reasoning Sampling Social Solutions Spectroscopy Switchgear Thermodynamic Tourism Transients Upsc Wbjee

Explore

  • Home
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Tags
  • Badges
  • Users

Footer

mcqoptions.com

About

MCQOptions.com

Here are the top interview questions, example answers, tips for giving the best response.

About Us

  • About Us
  • Contact Us

Legal Stuff

  • Terms of Use
  • Privacy Policy
  • Cookie Policy

Follow

© 2022 MCQOptions. All Rights Reserved