14 solutions available
Question 1What are escape sequences in Java? Give three examples.
Question 2What is the result of evaluating the following expression? (1 + 2 * 2) / 2 + 2
Question 3What is a token in Java? Name the tokens available in Java.
Question 4Why can't you use a keyword as a variable name?
Question 5Which of the following are Java keywords? input, class, public, int, x, y, radius
Question 6What are identifiers in Java? List three identifier formation rules.
Question 7Explain the following statement — "In Java, total, Total, ToTaL, and TOTAL are all different identifiers."
Question 8How would you print characters like \, ' and " in Java?
Question 9Distinguish between the following:i. Token and Identifier
Question 10Distinguish between "A" and 'A'.
Question 11Describe primitive data types in Java.
Question 12List the size of primitive data types in Java.
Question 13Which integer and floating point data types take up the same number of bits in computer's memory?
Question 14What is variable initialisation in Java? What are the default values of the following type of variables:short, int, long, float, double,...