java element naming strategy package all lowercase
play

Java Element Naming Strategy package all lowercase letters and - PowerPoint PPT Presentation

Java Element Naming Strategy package all lowercase letters and numbers class start with uppercase, rest mixed, no underscores method start with lowercase, rest mixed, no underscores instance variables start with lowercase, rest mixed, no


  1. Java Element Naming Strategy package all lowercase letters and numbers class start with uppercase, rest mixed, no underscores method start with lowercase, rest mixed, no underscores instance variables start with lowercase, rest mixed, no underscores named constants uppercase letters and underscores

  2. Operator Description Associtivity º [ ] indexing º member selection . º ( ) method invocation » ++, -- auto increment and decrement » ! logical negation » ~ bitwise complement » +, - unary » ( ) grouping and casting » new object instantiation » instanceof class membership (boolean) º *, /, % multiplication, division, modulo º +, - addition and subtraction

  3. º << bitwise left shift º >> bitwise right shift (sign extend) º >>> bitwise right shift (zero pad) º <, >, <=, numeric relationships >= º ==, != equality or inequality º & bitwise and º ^ bitwise exclusive-or º | bitwise or º &&, & logical and º ||, | logical or º ?: conditional expression » =, op= operation and assignment

Recommend


More recommend