implementation - Representation of enums -


How does 'behind the scenes' work in programming languages? I guess there is a different way of representing these datatypes in each language.

In Java, you can use the == operator, for example:

  public class TestEnum {Private Enum test {foo, bar} public static zero main String [] args) {System.out.println (Test.foo == Test.foo); // Return is true}}  

What an amplitude changes during an initial ==? Or is the single value singleton? Are there C # leverage emoms similar to Java? Do databases behave differently than programming languages?

java enum s still be an object to pair Use a lot of but work with == . The original (also see effective Java ) can provide some insight, but it will show you how they do it.


Comments

Popular posts from this blog

c# - How to capture HTTP packet with SharpPcap -

jquery - SimpleModal Confirm fails to submit form -

php - Multiple Select with Explode: only returns the word "Array" -