-1

I cannot find an answer online so i need help, i was wondering if Class class{ *insert code here*} is considered a statement and also at the start of the curly braces to the last, is that considered a block?.

TheSilence17
  • 183
  • 1
  • 2
  • 9

2 Answers2

1

first curly braces are always contain body of class. if you want to declare blocks inside class then again create curly braces in your class.

Musaddique S
  • 1,539
  • 2
  • 15
  • 36
0

since java is a case-sensitive so there is no any Class keyword class MyTestClass{} would be java class, not statement.

you could say System.out.println(0); is statement and if(something==somethings){} is the if block but these both must be inside java class

Mohsin AR
  • 2,998
  • 2
  • 24
  • 36