Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people's questions, and connect with other people.

Have an account? Sign In
Continue with Facebook
Continue with Google
or use

Have an account? Sign In Now

Sign In

Continue with Facebook
Continue with Google
or use

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

Sorry, you do not have a permission to ask a question, You must login to ask question.

Continue with Facebook
Continue with Google
or use

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

Ansfind

Ansfind Logo Ansfind Logo Ansfind Logo Ansfind Logo
Add question

Ansfind Navigation

  • About Us
  • Groups
    • Add group
Search
Add Question

Mobile menu

Close
Ask a Question
  • Home
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Hot Questions
  • Polls
  • Tags
  • Points
  • Users
  • FAQs
  • Help
  • Contact Us
Home/Questions/Q 13597
In Process
Anonymous
Anonymous.
Asked: November 18, 20212021-11-18T20:20:18+05:30 2021-11-18T20:20:18+05:30In: MCQ

Which of the following is true about the anonymous inner class?

Which of the following is true about the anonymous inner class?

1. Objects can’t be created

2. It has a fixed class name

3. It has only methods

4. It has no class name

java interview questionsjava mcq questionsjava questions
  • 4
  • 11
  • 364
  • 0
  • Share
    • Share on Facebook
    • Share on Twitter
    • Share on LinkedIn
    • Share on WhatsApp
Answer
  • Report

1 Answer

  • Voted
  • Oldest
  • Recent
  1. Megha Freelancer
    2021-11-18T20:28:47+05:30Added an answer on November 18, 2021 at 8:28 pm

    Answer: option 4). It has no class name

    Explanation: The only difference between anonymous inner classes and local classes is that they don’t have a name. Its primary purpose is to override class or interface methods. The other three alternatives about anonymous inner classes are false because they can have both methods and objects. It doesn’t have a specific name.

    Hence the option 4) It has no class name is correct answer.

    • 5
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report
Leave an answer

Leave an answer
Cancel reply

Choose from here the video type.

Put Video ID here: https://www.youtube.com/watch?v=sdUUx5FdySs Ex: "sdUUx5FdySs".

Related Questions

  • What is javaDoc? Explain the comments for classes, methods, fields and link.
  • Explain the methods available under String and String Buffer Class.
  • What is Iterator class? Give syntax and use of any two methods of Iterator class
  • Write a java program to display all the odd numbers between 1 to 30 using for loop & if statement
  • What are the different access specifiers available in Java?
  • What is the difference between a char in C/C++ and char in Java?
  • Why is java platform independent?
  • which of the following is a correct interface?
  • How do you compare strings in java?
  • Which of these is not a part of Java's collection framework?

Sidebar

Top Users

Janeclarizz Belmores

Janeclarizz Belmores

  • 3,723 Points
SaRa

SaRa

  • 3,388 Points
Professor
Wish Lay

Wish Lay

  • 2,610 Points

Adv 250x250

  • About Us
  • Home
  • Communities
  • Tags
  • Points
  • Users
  • Help
  • Contact Us
  • Referrals
  • Policies
    • Privacy policy
    • Terms of use
Revenue

© 2023 Ansfind. | Designed by Weboptify

monetization_on Earn home Home
search Search
help Add

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.