
Web Programming with Java - Java BasicsIdentifiers: Names for the things you will refer to in your programs Used for programming entities as variables, constants, methods, classes, and packages Rules for naming identifiers: A sequence of characters that consists of letters, digits, underscores (_), and dollar signs ($). Cannot start with a digit. Cannot be a reserved word. Cannot be true, false, or null. An identifier can be of any length.
.Variables & Constants
Variables: used to store data in a program datatype variableName; datatype variable1, variable2, ..., variablen; Constants Represents permanent data...37 trang
91 lượt xem
5 lượt tải

Web Programming with Java Java - Object-Oriented ProgrammingOutline Objects and Classes OOP Concepts Encapsulation Aggregation/Composition Inheritance & Polymorphism Some useful Java classes Exception Handling, I/O Readings & Exercise Discussion
.Objects and Classes Basic OO concepts Object, class, state, behavior, message Creating Java classes, objects, properties and methods Constructors Package Reference data type Variable scope
Basic OO concepts : Object
Object: any thing, which can be described by State: property, or attribute Behavior: function/action, or method: ask the object to perform a task Example A student, a desk, a circle, a button, and even a loan...52 trang
87 lượt xem
9 lượt tải