Lists Part 2, Java

Channel:
Subscribers:
2,640
Published on ● Video Link: https://www.youtube.com/watch?v=mV8auEhsASU



Duration: 1:13:15
121 views
2


Today we went over a little bit more of linked lists, and will save the rest for CSCI 41. I gave a simple example of deleting a node from the middle of a list, and showed how ASAN (address sanitizer, invoked with -fsanitize=address when compiling) can be used to find problems like memory leaks and use-after-free errors. We also talked about what needs to be done on the Shakespeare assignment as far as linking up the list goes.

Next we introduced Java, and talked about how if you ignore the standard library, Java and C++ are pretty similar. They compile and run differently (Java uses "javac" and "java" to compile and run, versus "g++" and "a.out") and Java does things like what Address Sanitizer does always, but at the core language level they are pretty close. If/else if/else statements, ints, floats, doubles, for loops and so forth are all identical. Arrays are a little different, as everything in Java is new-ed.

Most of the difference is in the standard libraries, which are laid out a little differently, but you can learn Java very quickly if you know C++.







Tags:
csci 40
linked lists
java
bridges