Akshayyha Krishnamurthy wrote: I learned that whenever there is an instantiation of a subclass, then implicitly compiler will add super() in the subclass's default constructor which in turn invokes the parent class constructor. So in this case too why didn't it produce a runtime error even?
Also, there's a compile-time error when I declare a constructor for the interface.
Could anyone help me understand this ?
Al Hobbs wrote:Have you looked at the logs to see what's happening? Also, are you using NetBeans? Looks like NetBeans.
Al Hobbs wrote:Is your code throwing an exception or what?
Liutauras Vilda wrote:parseMovieFile() and parseRatingFile() methods look almost identical. Consider adding parameter for file path and removing one duplicated method.
Fred Kleinschmidt wrote:You should never use Math.pow() to compute the square of a number. Just use x*x instead.
In your computeCosineSimilarity() method, what do you think will happen if movieA is longer than movieB?