Foo bar = new Foo(); if(bar instanceof Foo){ ... // it true }
I'm just wondering why we are not using the camel notation ( instanceOf ) instead of it ( instanceOf ).
instanceOf
instanceof is an operator and a reserved word, not a method or variable. The Camel case is used in Java for method names and variable names.
instanceof
since instanceof is an operator, Camel casing is for methods and variables
Camel casing
the method name is defined as lowerCamelCase https://google-styleguide.googlecode.com/svn/trunk/javaguide.html#s5.2.3-method-names
and operators are predefined characters
Source: https://habr.com/ru/post/980163/More articles:How to change pdf tab title in browser - phpBest way to wait for a callback - c ++Checking Socket.IO if there are clients in the room with socket.io-redis - socket.io-1.0Medium. Layout, server or Angular layout. - javascriptError starting multiple workflows in OOZIE-4.1.0 - javaHibernate, get an external identifier without loading the associated object - javaquestions with six under django? - pythonDynamically resize div to fit dynamic content? - javascriptSwift CLAuthorizationStatus.AlwaysAuthorized undefined - iosFinding an algorithm to create this table of numbers - pythonAll Articles