Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
Community
Ask the community for help and clear up your study doubts
Discover the best universities in your country according to Docsity users
Free resources
Download our free guides on studying techniques, anxiety management strategies, and thesis advice from Docsity tutors
An introduction to an object-oriented programming (oop) course, focusing on java as the primary programming language. Major topics include basic elements, control flow, classes, arrays, inheritance, and miscellaneous topics. Students will learn about variables, constants, operators, i/o, if-else, switch, while, do-while, for, objects, instance and class variables, access modifiers, constructors, methods, static and non-static, arguments, call-return, local variables, return and memory leaks, instance and class variables, instance variables, constructors, methods, static and non-static, arguments, call-return, local variables, return and memory leaks, memory maps, method overloading vs. Overriding, late-binding, abstract methods and classes, up- and down-casting, getclass and instanceof, javadoc, java class library, packages, exceptions, try-catch blocks, and exception propagation.
Typology: Study notes
1 / 6
Basic Elements : types, variables, constants, operators, I/O Control Flow : if-else, switch, while, do-while, for Classes :
public class Person { private String name; private int age;
public Person( String n, int a ) { name = n; age = a; }
static void f( String b ) { int x = b.length( ); / STOP HERE / }
public static void main( String[ ] args ) { String[ ] n = {"Bob", "Alice"}; Person p = new Person( n[1], 43 ); f( n[0] ); } }
Heap
Bob
Alice
p: n:
x: 4 f (^) b:
main
call stack