Substitutability and subtyping. – Inheritance or delegation Subtyping and substitutability class Rectangle { ... (half like ML half like Java).
scale study on over 20 million Java classes in order to compare the Substitutability
Nov 4 2018 For the first we analyzed. Boa's September 2015 GitHub dataset
substitutability bug Pradel et al. (2012); Pradel and Gross (2013) or a code smell. This thesis investigates these questions on real world Java projects
Child class is a specialized form of parent class. ? Principle of substitutability holds. ? A good example is the Java hierarchy of Graphical components
Substitutability in Java
Subtypes are substitutable for supertypes Java subtypes that are not true subtypes are confusing and dangerous ... Every subclass is a Java subtype.
BORROW AND BUY: COMPLEMENTARITY AND SUBSTITUTABILITY OF. ACQUIRERS' ALLIANCES AND TECHNOLOGY ACQUISITIONS. A DISSERTATION.
https://www.cs.rpi.edu/academics/courses/spring21/csci2600/handout-files/files_29_03/SubtypePolymorphism.pdf
5.3 Tool for Experimental Verification of Contextual Substitutability . 14 interface or class a Java interface implemented by a EJB component (in this ...
This paper conducts a large scale study on over 20 million Java classes in order to compare the effects of the methods of subclasses and superclasses in practice Our comprehensive study considers the exception synchronization I/O and method call effects
–substitutability : client code can use a subclass object in any situation where a superclass object was expected and expect the same results •("Liskov Substitutability Principle") –example: Java Swing GUI framework JComponent class •properties: size location color font text label border events
Computer Science Science at Rensselaer
Large-scale study of substitutability in the presence of e ects by Jackson Lowell Maddox A thesis submitted to the graduate faculty in partial ful llment of the requirements for the degree of MASTER OF SCIENCE Major: Computer Science Program of Study Committee: Hridesh Rajan Major Professor Steven Kautz Wei Le
Introduction to programming in Java : an interdisciplinary approach / by Robert Sedgewick and Kevin Wayne p cm Includes index ISBN 978-0-321-49805-2 (alk paper) 1 Java (Computer program language) 2 Computer programming I Wayne Kevin Daniel 1971- II Title QA76 73 J38S413 2007 005 13’3--dc22 2007020235 Copyright © 2008 Pearson
152Elements of Programming Q&A Q. Why are we not using the standard Java libraries for input, graphics, and sound? A. We areusing them, but we prefer to work with simpler abstract models. The Java libraries behind StdIn, StdDraw, and StdAudioare built for production pro- gramming, and the libraries and their APIs are a bit unwieldy.
Modifying the value of a variable is something that we do so often in programming that Java provides a variety of different short- hand notations for the purpose. For example, the following four statements all in- crement the value of iby 1in Java: i = i + 1; i++; ++i; i += 1;
The library consists of the nine methods: isEmpty(), readInt(), readDouble(), readLong(), readBoolean(), readChar(), readString(), read- Line(), and readAll().
For example, the following four statements all in- crement the value of iby 1in Java: i = i + 1; i++; ++i; i += 1; You can also say i--or --ior i -= 1or i = i-1to decrement that value of iby 1.