Anyone heard of static Constructor? Pure Concept Question

Hi All,
I guess this is a little obscure but let me ask this anyway.
Has anyone heard about a "static constructor"? No I am not talking about a static block in your code. I am talking about a static method which will be called every time you make a static call on a particular class. Just like the constructor gets called every time you create an Object. The difference will be that the static code will be executed only once while the static constructor will be called every time you call a static method.
My question: Do you see a need, from the experience you have got, about such a construct being a feature of a language? I was talking to some people of a very well known company - who were telling me about this special feature - as they put it - being part of their Proprietary language. They couldn't convince me as to why this "special" feature was required. I seek help from the Community to help me think about this. I tried seeking an answer to this question on the net but to no avail.
I for one, am not going to stop my quest after posting here - but I would be grateful if any of you could help me.
Thanks for all your support.
Best Regards,
Manish

Hi All,
I am overwhelmed by the response. Thanks for spending your time thinking about this.
Some of the questions you asked were...
teknologikl : Did the people say about how is it useful?
javax.pert : No. They tried to tell me things like initializing static objects which I could have as well done in a common method which I call in the start of every static method. Basically they could not convince me about the use of a static constructor. May be they did not know too well why it was put in the first place. Because I was talking to programmers rather than Designers. But I did not want to stop at that. I wanted to tickle my gray cells and yours to find out why would someone put this as part of a language? I agree with most of your posts but instead of telling me that this is not going to be very useful ( which I already thought of), I would appreciate if you can help me think Why would someone have put it at all. You see what I am saying?
rjwr: static factory methods
javax.pert: Yup. I am aware and use static factory methods. But this is a little different. This is called automatically by the VM - just like a normal constructor - whenever a static method is called.
dubwai: This sounds pretty lame to me...
javax.pert: Sorry if I wasted your time. But please look at my response to teknologikl above.
DrClap:
javax.pert: Yup, yup. I thought just the way you are saying. I am actually trying to get in touch with some one who knows more about this proprietary language - maybe one of the designers. I would be glad to share the findings when it comes - if it is worth sharing of course. Thanks for your time though. :)
rvflannery: Security framework.
javax.pert: True. I agree with you about this being a wrapper for security purposes. Maybe this is what they thought of. One reason I see is that because they expose the APIs to third party vendors. These APIs can talk, by extending certain objects, to the sensitive areas of the database. I guess this could be one of the reasons. I will share it once I know more about it.
trejkaz: For debugging.
javax.pert: See my answer to rvflannery above.
Thanks all of you for spending your time with me. I will keep you informed whenever I get something worth sharing.
Thanks again,
Best Regards,
Manish

Similar Messages

  • Is static constructors exist in java or not?

    Hi,
    I would like to know the existence of static constructors in java.
    If yes... reason
    If no... reason
    Can anyone throw some light on this topic.......?

    This question hardly makes sense. A constructor isn't even a proper
    method, i.e. it can only be called by the 'new' operator. In a way you
    can consider ctors being static because you don't need an object to
    invoke it on.
    kind regards,
    Jos

  • Can anyone heard the difference with 24bit crystali

    well, i using my HD650 headphone play few 320Kbps mp3 music, keep turn on/off the 24-bit crystallizer, but I don't feel any difference ?
    Can anyone heard the difference? I think its not notable.

    Believe me, the improved sound quality and performance gains in gaming alone is reason enough for me to be happy with my upgrade from Audigy 2 Plat Pro ZS to X-Fi Elite Pro.
    Add to that the excellent quality i get with my studio software/ harware and very very low ASIO latency settings i am sold. All the other features for me are a bonus. Question is what was your reason to upgrade sound cards... What is it you expected this card to do above your old card. If you play games that use the X-FI features ( and all new top titles will ) the gains are there for the taking BUT of course the rest of your PC has got to compliment your sound card.No point putting it inside a PC that has a bad hair day even running Half Life 2. I sort of feel that due to the several issues you have had installing this card ( reading your other posts ) you do not have my love for it therefore it's easier to bash it.
    Get it installed and working correct, then treat yourself to some games that offer a true sound experience , lock yourself in your room and get a few hours of pure heaven gaming with the volume turned up. Feel the love for this superb card flow back into your heart.

  • 2-in-1 tables...Anyone heard of this?

    Hi All:
    Just posting this as a shot in the dark. I was recently reviewing a system that has been implemented by a company that I consult with. It's based on Oracle Applications and I was questioning some of the design (or lack thereof) that took place.
    In one instance there was a highly denormalized table that really should have been 3 separate tables. When I approached the project manager on this he refered to this as a 2-in-1 table and said that it was implemented to mitigate locking in Oracle. This is resulting in a lot of redundant data in the system (on some columns there is 30-40% redundancy) and I think that this concept is just a coverup for either laziness or lack of programming skill.
    Has anyone heard of this in Oracle forms? And is there truly a locking problem (I don't think that there is)
    I have yet to find anyone who has validated this concept, so I don't hold out much hope.
    Thank You
    Ron

    If it was a custom design application, you would be better off asking your manager to dig through and provide you with a design document. When designing the application there would be document somewhere on the network. You just need to browse and understand the design considerations. Ask him if there are any MD-70 docs for the Oracle Applications.
    Any changes to custom designs would warrant extensive testing on the test database/ environment.
    From your statements, it seems to me as a bad initial design. Consult your Apps DBA as well on the impact of changing the table structure and also relationship.
    Thanks.

  • Hotspot: Pro-rating. Anyone heard?

    Back when I had a Razr phone I could use it as a modem for my computer. The hotspot feature will be nicer inasmuch as up to five devices can share the internet connection, and over wireless (as opposed to a USB cable). That tethering feature was $60 per month). However, they would prorate it for you, so that if you only wanted it for a day, you could cancel it before the day was over and pay only $2.
    Has anyone heard whether the hotspot feature will work that way, or is it only available in 1-month chunks?
    $20 is a decent price in my opinion, but for those of us who only need this feature once in a while, it would be nice to enable it for a day or two and only pay 1/30 of the cost.

    nedcook wrote:
    Back when I had a Razr phone I could use it as a modem for my computer. The hotspot feature will be nicer inasmuch as up to five devices can share the internet connection, and over wireless (as opposed to a USB cable). That tethering feature was $60 per month). However, they would prorate it for you, so that if you only wanted it for a day, you could cancel it before the day was over and pay only $2.
    Has anyone heard whether the hotspot feature will work that way, or is it only available in 1-month chunks?
    $20 is a decent price in my opinion, but for those of us who only need this feature once in a while, it would be nice to enable it for a day or two and only pay 1/30 of the cost.
    You can still prorate it, but I don't know why that would be a favorable option beyond the cost. Consider:
    There are 31 days in your cycle from December to January. During this cycle, you add the feature for two days. You would factor the prorated cost as 20/31days in cycle = $.65/day * 2/active days = $1.29. Just as much, the allowance would be prorated as well, which translates to 2048 megabytes (2GB)/31 days =66MB/day * 2/active days = 132MB or .1289GB. If you go over the prorated allowance, you are then charged an additional $20/GB that you go over, even if the overage is by one little KB. So, while superficially it looks like a good savings, the danger far outweighs the benefit, especially since the content on the internet is using more and more data every day.
    Hard work to you in making the right decision. If you need any other question answered, feel free to ask. I am here regularly.

  • My S5 corporate email stopped working. I heard it is a bug in LOLLIPOP. Has anyone heard this?

    My S5 corporate email stopped working. I heard it is a bug in LOLLIPOP. Has anyone heard this?

    Sorry to hear of the issues you are experiencing, StephenjCrane. We definitely want to make sure your work email is working. When you try to access your email, are you receiving an error message? Are you using the default email client, or a third party application? Do you know if other coworkers are also experiencing the same issue?
    Just in case, please try a wipe cache partition as this can help stop a number of issues.
    http://vz.to/1uorSMg --When you reach Step 4, please choose Wipe Cache Partition, and not Wipe Data/Factory Reset. Once this is done, please select Reboot to restart your phone.
    When you try to access
    NicandroN_VZW
    Follow us on Twitter @VZWSupport
    If my response answered your question please click the "Correct Answer" button under my response. This ensures others can benefit from our conversation. Thanks in advance for your help with this!!

  • Java Usage Concept Questions

    I have a java Command line running program. Which allow input/edit data of clients and store them into a Flat file. The problem is that i have to make a GUI, ( a thin web based client ) and using only HTML and Javascript.
    The next step is the db should be frontended by servlet or JSP that interact with thin client to perform the database retrievals.
    Now my concept Questions:
    1. Is it possible to communicate to a Java Program using HTML and Javascript? If so, any exampler, pointers?
    2. I was thinking of using HTML and Javascript to directly modify the Database. ( Since it is a flat file therefore nothing more than a txt file ) But isn't this side stepping the problem?
    3. If i could modify the Flat file using HTML and Javascript only. Why would i need JSP and Servlets? And if i could do it with JSP and Servlets only why would i need the think client ( HTML bit )?
    If all of above 3 are correct ( conceptialy ), what is the orginal command line java program for?
    The last question is why i think i have the concept wrong. Please i am new to web programming so feel free to point out any error.

    Hello,
    You a little off on a few things. let me explain what each is used for to give you a better idea what each i used for.
    HTML - Used to format data. Is static and can't do any File I/O and such
    Javascript - Is usaually used for client side validation and some cool effects.
    JSP - Is a scripting language that allows you to execute code on the server to create dynamic content and server side stuff like saving to a DB or a file
    Servlets - Kinda like JSP but gives you more control over a few things. Usaually used for form processing and Servlet/Applet communication
    for you application i would probably embed HTML/JavaScript for layout and validation into a JSP page for your display pages.. then build JSP pages to handle all you business logic and processing.
    --Zer0C00L                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • HAS ANYONE HEARD OF i STOP MOTION?

    HAS ANYONE HEARD OR WORKED WITH THIS PROGRAM? THE WEBSITE WHERE I GOT THIS INFO IS A LITTLE VAGUE. IS IT COMPATIBLE WITH FCPE? IS THERE A BETTER PROGRAM TO DO STOP MOTION WORK?

    I have the program, and think it's pretty good. The company is not u.s., and is unaccustomed to dealing with customers. (ie, no real customer service). I had some support/technical questions that went unresolved, and then some quesitons about upgrade which were not answered in a satisfactory way. But, the program is useful and well done. Can be used with FCE.

  • Has anyone heard of "UTH Computers" scamming and taking over control of your computer?

    Has anyone heard of "UTH Computers" scamming and calling you and then taking over your computer?
    Sorry, I don't know where else to post this question…...

    What damage do you think they did?
    If you gave them your credit card number, call your bank and explain what happened.
    Then have them issue a new credit card number and never give it out again.
    Did you give them your login credentials?  If so, changed your password now!
    Did some kind of software get installed on your Mac (not possible unless you authorized it)?

  • ITunes no longer loads after updating to Windows 8.1.  I have tried every corrective step I've found on the web (reinstall, copy files, change permissions, etc.) nothing helps.  Has anyone heard if Apple is working on fix?

    Itunes does not launch after updating to Windows 8.1.  I've tried every suggestion I can find on web (reinstall, copy files from other directories, change permissions, etc.).  Nothing works.  At best I can get the licensing agreement to show and then nothing.  Has anyone heard if a fix is in the works?

    Hi 3backpacker3,
    It sounds like you are on the right track in troubleshooting this issue. If you are having launch issues, you may find the following article helpful:
    iTunes for Windows Vista or Windows 7: Troubleshooting unexpected quits, freezes, or launch issues
    http://support.apple.com/kb/ts1717
    Regards,
    - Brenden

  • TS3297 Does anyone know how to reset your security questions?? I loaded an itunes gift card on new ipod but when trying to make a purchase, itunes is asking us the incorrect security questions?!(for 1st time purchase)

    Does anyone know how to reset your security questions?? I loaded an itunes gift card on new ipod but when trying to make a purchase, itunes is asking us the incorrect security questions?! (for 1st time purchase)  I know the questions are not what I chose because I wrote the questions & answers down when setting up the ipod. Any ideas??!!!

    Reset Security Questions
    Frequently asked questions about Apple ID
    Manage My Apple ID
    Or you can email iTunes Support at iTunes Store Support.
    If all else fails:
      1. Go to: Apple Express Lane;
      2. Under Product Categories choose iTunes;
      3. Then choose iTunes Store;
      4. Then choose Account Management;
      5. Now choose iTunes Store Security and answer the bullet questions, then click
          Continue;
      6. Sign in with your Apple ID and press Continue;
      7. Under Contact Options fill out the information and advise iTunes that you would
          like your security/challenge questions reset;
      8. Click Send/Continue.
    You should get a response within 24 hours by email.
    In the event you are unsuccessful then contact AppleCare - Contacting Apple for support and service.
    Another user had success doing the following:
    I got some help from an apple assistant on the phone. It is kind of round about way to get in.
    Here is what he said to do and it is working for me...
      a. on the device that is asking you for the security questions go to "settings", > "store" >
          tap the Apple ID and choose view"Apple ID" and sign in.
      b. Tap on payment information and add a credit/debit card of your preference then select
          "done", in the upper right corner
      c. sign out and back into iTunes on the device by going to "settings"> "store" > tap the
          Apple ID and choose "sign-out" > Tap "sign -in" > "use existing Apple ID" and you
          should be asked to verify your security code for the credit /debit card and NOT the
          security questions.
      d. At this time you can remove the card by going back in to edit the payment info and
          selecting "none" as the card type then saving the changes by selecting "done". You
          should now be able to use your iTunes store credit without answering the security
          questions.
    It's working for me ...I just have to put in my 3 digit security pin from the credit card I am using.
    Good Luck friends!

  • Has ANYONE heard from apple on the 7.1.6 bug???

    I KNOW there's been a lot of emails sent, but has anyone heard back from apple?
    I want to know what the **** they're doing about it..
    Dual 2.0 G5   Mac OS X (10.4.9)  

    BeyondParadise,
    To Apple Discussions!
    "is there an possibility to "downgrade"?? i don't think so?"
    Yes there is. See Ricktoronto’s 6/7/07 response in this thread: http://discussions.apple.com/thread.jspa?threadID=987796&tstart=0
    "ca i inform apple in a way about this bug? thanks and greets from germany"
    Yes. QuickTime Feedback

  • Has anyone heard definitely that Apple has stopped supporting anything but IOS 7 for FaceTime?

    Has anyone heard definitely that Apple has stopped supporting anything but IOS 7 for FaceTime?

    No such announcement has been made.
    From the various posts on the forums, it seems users on various devices and versions of iOS are having issues, even those with iOS 7.
    ~Lyssa

  • Has anyone heard anything about 2.0.1?

    I've read some reports that the folks from BGR claim to have found Apache server logs making reference to 2.0.1 but not much else. Has anyone heard anything more definitive on the topic?

    Likewise, no problems with 2.0. Yes, there are a lot of posts about problems. There are a lot of sick people in hospitals, also. That doesn't mean that the entire population is sick. If more than even a tiny percentage of the 6 million iPhone users had problems with their phones these boards would shut down from overload.
    This is not to say there are no real problems, but that it is a small minority that has them. People with no problems don't go to message boards just to say "I have no problems".
    I'm not saying the problems aren't real, but rather than wait for Apple to produce a 2.0.1 that might or might not fix the specific problem you are having try to do a little troubleshooting. Even it it's an Apple problem you can probably fix it yourself.

  • I'm having the same buffering issues that other users are having when I try to send a short video from my Iphone 4S to my Apple TV.  Has anyone heard back from Apple on this bug ?

    I'm having the same buffering issues that other users are having when I try to stream a short video from my Iphone 4S to my Apple TV
    Has anyone heard back from Apple on this bug ?

    Try the following steps, check whether things are working after each step where appropriate, before trying the next.
    Check AirPlay is turned on on the Apple TV (turn it off and on if it already is)
    Check that both devices are on the same network (Settings > Wifi, on the mobile device and Settings > General > Network, on the Apple TV).
    Restart the Apple TV (Settings > General > Restart).
    Restart the Apple TV by removing ALL the cables for 30 seconds.
    Restart your router. (Also try removing it’s power cord for at least 30 seconds)
    Restart your mobile device.

Maybe you are looking for

  • Purchase not shown

    I've just noticed Motion which I bought, and downloaded from the App store no longer shows under my purchases. Others, are there. But not Motion. Whats up, and how do I get i back to show should I need to down load it again another day?!?!?!?

  • "Upgrading" to CS5 --- DON'T

    I have been using CS5 for a month now (I've used Captivate since is it was RoboDemo). First on a converted project and now one from scratch. This is just one very buggy and unstable application. I've sent in over 20 bug reports and while Adobe is res

  • Can I copy and paste from OS X into X11?

    I want to copy text from an OS X app (Firefox, say) and paste it into an app running under X11? Is this possible?

  • Im trying to connect my iPod to my computer.

    I already tried the support page. I uninstalled fully iTunes which resolved the issue but it came back and I dont want to re-uninstall everything. What can I do? +it is detected by my computer

  • Logo Component - Design mode shows the edit component toolbar don't show "Edit" button

    I just created a Logo component on my website following the CQ "How to create a Fully Featured Internet Website" guide. I do create the logo component, edited the jsp page with the following code <%@include file="/libs/foundation/global.jsp"%> <%@ pa