-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
  • 369,052
  • 73
  • 620
  • 1,021
Stack User
  • 69
  • 1
  • 9

2 Answers2

2

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

recursive
  • 80,919
  • 32
  • 145
  • 234
2

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

Tony Delroy
  • 99,066
  • 13
  • 167
  • 246