-11

I think this is a simple question: Is sizeof is a keyword in Java? Some people also say call it an operator, some call it a method, and some call it a command. What is it?

Lightness Races in Orbit
  • 378,754
  • 76
  • 643
  • 1,055
Stack User
  • 69
  • 1
  • 9

2 Answers2

2

sizeof is an operator (and keyword) in C#. It's not in Java.

recursive
  • 83,943
  • 34
  • 151
  • 241
2

In C++ and C, it's both an operator and a keyword.

Tony Delroy
  • 102,968
  • 15
  • 177
  • 252