GoConqr has a new look! Let us know what you think.

Flashcards

OCP - Basics

James Chapter German 3 cards

Cards in this deck (3)

  1. 1Overloading DefinitionFor overloading, the method parameters must vary by type and/or numbers
  2. 2What happens if there are multiple overloaded methods?Java looks for the closest match first. It tries to find the following: Exact match by type, matching a superclass type, converting to a larger primitive type, converting to an autoboxed type, varargs
  3. 3Rules for overriden methodsthe access modifier must be the same or more accessable. The return type must be the same or more restrictive type, also known as covariant return type. If any checked exceptions are thrown, only the same exceptions or subclasses of those exceptions are allowed to be thrown.
    The methods must not be static (If they are, the method is hidden and not overriden)

Information

Description
Flashcards on OCP - Basics, created by James Chapter on 11/11/2017.
Created by
James Chapter
Views
0
Rating

Feedback

What is it about?

What do you think of the new look?

How do you like it?