Java - Exceptions, Object Class, Primitive Classes by Zachary Kingston

video locked

About the Lecture

The lecture Java - Exceptions, Object Class, Primitive Classes by Zachary Kingston is from the course Java Programming for Beginners. It contains the following chapters:

  • Java Exceptions
  • Handle Exceptions
  • Catch Blog
  • Override the Equals Method
  • Method Summary

Author of lecture Java - Exceptions, Object Class, Primitive Classes

 Zachary Kingston

Zachary Kingston


Customer reviews

(1)
5,0 of 5 stars
5 Stars
5
4 Stars
0
3 Stars
0
2 Stars
0
1  Star
0


Excerpts from the accompanying material

... on Facebook at: http://www.facebook.com/learntoprogram.tv Lab Exercise 8 1) Java provides class implementations of primitive objects –int and Integer, for example—but the String class has no primitive counterpart. Why not? 2) The Object class describes ...

... Strings are not appropriate for a primitive implementation because they are of variables sizes. A defining trait of primitives is that they take up a fixed amount of space in memory. If String was a Java primitive, it would need to have a maximum length. 2) The Object class describes a hashCode() method. What is this method’s intended purpose? How does it relate to the equals() method? The hashCode method exists to convert objects into integer values which are ...