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

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

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

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

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

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

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 657589
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T22:50:27+00:00 2026-05-13T22:50:27+00:00

As we use default keyword as a access specifier, and it can be used

  • 0

As we use “default” keyword as a access specifier, and it can be used in switch statements as well with complete different purpose, So i was curious that is there any other keywords in java which can be used in more then one purposes

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-13T22:50:27+00:00Added an answer on May 13, 2026 at 10:50 pm
    • default can be used both in a switch and as a default value in an annotation (as pointed out by Bozho)
    • final means “can’t be derived from / overridden” and “is read-only” which are two different – but related – meanings (as pointed out by Jon)
    • extends can be used both to specify the supertype of a class and can be used in wildcards and type variables to put a constraint (related but not exactly the same) (List<? extends Foo>)
    • super can be used to specify to something in a superclass of the current class, or in a wildcard to put a constraint (List<? super Foo>)
    • static means both “part of the class, not an instance” (for methods, attributes or initializers) and as a static import
    • class to declare a class (class Foo {}), or to refer to a class literal (Foo.class) (as answered by ILMTitan)
    • (for can be used in a normal for loop and the “enhanced” for, but that’s more like overloading (as Bozho puts it so nicely) than really having two meanings)
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I don't want to use the default route that vs.net creates: routes.MapRoute( Default, //
What is the use of default keyword in C#? Is it introduced in C#
Quoting MySQL INSERT manual - same goes for UPDATE: Use the keyword DEFAULT to
So C# now allows you to use default(Foo) to get a recognized not filled
When I use the default java locale on my linux machine it comes out
When I use the default model binding to bind form parameters to a complex
At my company we use the default agile process template with some modificiations. One
I use a non-default Windows colour scheme on most of my machines, and have
What does Java use as a default probing method for HashMap? Is it Linear?
By default IntelliJ IDEA 7.0.4 seems to use 4 spaces for indentation in XML

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

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.