Java 10: Interfaces

Loading...

Alert icon
Upgrade to the latest Flash Player for improved playback performance. Upgrade now or more info.
75,096
Loading...
Alert icon
Sign in or sign up now!
Alert icon
Loading...

Uploaded by on May 13, 2007

Java 1.6
Netbeans 5.5.1 Beta

Category:

Howto & Style

Tags:

License:

Standard YouTube License

  • likes, 12 dislikes

Link to this comment:

Share to:

Top Comments

  • Who are you to say they are wrong? Just because he may not use the same naming conventions that you choose to use does not mean they are wrong. The important thing is to make sure you are consistent.

  • You can have variables, public static final

see all

All Comments (33)

Sign In or Sign Up now to post a comment!
  • Finals are constants not variables, and you can have them in an interface. It's very common practice to have an interface called Constants, where you have your constants.

  • As far as I know you can have constants NOT variables. And you can omit public static final, as when you declare a variable in an interface, they immediately become public static final, another words, a constant.

  • According to Chapter 9 of the Java Language Specification, it is proper style to declare an interface's methods without keywords public and abstract because they are redundant in interface method declarations. Similarly, constants should be declared without keywords public, static and final because they, too, are redundant.

  • You can have variables in an interface...must be public static.

  • Thanks alot for this

  • constants are NOT variables ! get your stuff right

  • This is not a good tutorial for someone who wants to learn core Java 1) 0:36 - Wrong! You can put variables in an interface. Interface variables are constants, so they're public, static, and final by default. 2) 0:45 - Interface methods are implicitly public and abstract, so no need to use those access modifiers: public void render() == void render().

  • Because I still don't know shit about Interface yet, and I would like to see what they would like for my skeleton

  • Hey If I send you my code can you make a interface for me? Please and Thank you.

  • Loading comment...
Loading...

Alert icon
0 / 00Unsaved Playlist Return to active list
    1. Your queue is empty. Add videos to your queue using this button:
      or sign in to load a different list.
    Loading...Loading...Saving...
    • Clear all videos from this list
    • Learn more
    to add this to a playlist