Basic Java Language: Difference between revisions
wikademia>Wikademia m Text replace - '[[Topic:' to '[[' |
|||
| (2 intermediate revisions by the same user not shown) | |||
| Line 1: | Line 1: | ||
This lesson discusses the basics of the Java language, including variables, primitives, operators, statements and Java writing conventions. | This lesson discusses the basics of the Java language, including variables, primitives, operators, statements and Java writing conventions. | ||
{{ntnes}} | |||
== Touch on Classes == | == Touch on Classes == | ||
Everything in Java is written in classes. A Class in this context is a section of code that can contain data (variables), and instructions for processing that data (methods). Returning to the Hello World example from the [[Introduction to Java]], the class is defined on the first line, and everything within the curly brackets is within that class. | Everything in Java is written in classes. A Class in this context is a section of code that can contain data (variables), and instructions for processing that data (methods). Returning to the Hello World example from the [[Introduction to Java]], the class is defined on the first line, and everything within the curly brackets is within that class. | ||
| Line 396: | Line 396: | ||
}} | }} | ||
<br><br><hr> | <br><br><hr> | ||
<!--[[ | <!--[[Java|Back to Java Main Page]] | [[Introduction_to_Java|Previous Lesson]] | [[Java_Decision_Structures|Next Lesson]]--> | ||
{{1lvlnav|[[ | {{1lvlnav|[[Java|Java]]|[[Introduction to Java]]|[[Java Decision Structures]]}} | ||
[[Category:Java]] | [[Category:Java]] | ||
[[Category:Learning activities]] | [[Category:Learning activities]] | ||
[[Category:Basics]] | [[Category:Basics]] | ||