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

  • Home
  • SEARCH
  • 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 8015167
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T20:10:33+00:00 2026-06-04T20:10:33+00:00

I was just studying about final data members and i thought what would be

  • 0

I was just studying about final data members and i thought what would be the difference final variables vs static final variables ??


I understand that a field that is both static and final has only one piece of storage, and final variable will have storages associated with every instance.

But even if i declare a variable only final, then it remains the same for all the objects as i need to initialize them in the program itself and not at the run time.


So, basically there is no difference between the two except for the memory related issue ??

  • 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-06-04T20:10:34+00:00Added an answer on June 4, 2026 at 8:10 pm

    But even if i declare a variable only final, then it remains the same
    for all the objects as i need to initialize them in the program itself
    and not at the run time.

    No, non-static final members can be initialized in the constructor. They cannot be re-assigned after that.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I started studying about AppDomains, and I just cannot understand the difference between CreateInstance
After studying TCP/UDP difference all week, I just can't decide which to use. I
I'm studying B+trees for indexing and I try to understand more than just memorizing
I just saw this data-structure on the Java 6 API and I'm curious about
I'm just studying the Builder pattern and do not understand the point of the
I have just started studying Android and I am still lost. I would just
I've been studying about k-means clustering , and one thing that's not clear is
I just started studying programming about 6 months ago and I have really been
I am trying to understand few things about using dylib and still studying, so
I'm studying about implementing Comet in my application. I got that for each request

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.