Answer the following questions:

  1. Which is the first method executed by Java?
  2. How do you create a single line comment?
  3. State the five data types introduced to date
  4. How is the following expression read in Java?
    int mark = 76;
  5. Is = the same as == ? Why not, explain.
  6. What symbol is used to concatenate variables and strings?
  7. For every opening curly bracket there is always a........
  8. What convention should be followed when naming classes?
  9. What convention should be followed when naming variables of more than one word?

............................................................................................................................. Convert the following equations to Java syntax:

  • perimeter of rectangle = 2 times the length plus 2 time the width
  • area of rectangle = length times width