0% found this document useful (0 votes)
4 views1 page

Asignment 2

The document discusses different types of comments in Java, including implementation and documentation comments. It defines keywords as reserved words with specific meanings that cannot be repurposed, and lists five examples: abstract, assert, boolean, break, and byte. Additionally, it describes Allman and K&R styles of coding, referencing specific figures for visual examples.

Uploaded by

mushrooms1866
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
4 views1 page

Asignment 2

The document discusses different types of comments in Java, including implementation and documentation comments. It defines keywords as reserved words with specific meanings that cannot be repurposed, and lists five examples: abstract, assert, boolean, break, and byte. Additionally, it describes Allman and K&R styles of coding, referencing specific figures for visual examples.

Uploaded by

mushrooms1866
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

Q1. What are different types of comments in Java?

Java has implementation comments and documentation comments.

Q2. What is a keyword or reserved word in Java?


In java keywords are reserved words with a set meaning and functionality that cannot be used for
anything else.

Q3. List 5 keywords used Java language. Abstract, assert, boolean, break and byte.

Q4. What is Allman style of coding? The indent style shown in Figures 1-4, 1-6, and 1-7

[Link] is K&R style of coding? The indent style shown in the preceding example

You might also like