Java Core. Basics

Beschreibung

Questions about basics in Java Core
Gadget
Quiz von Gadget, aktualisiert more than 1 year ago
Gadget
Erstellt von Gadget vor mehr als 9 Jahre
256
8

Zusammenfassung der Ressource

Frage 1

Frage
What is the general meaning of Object in java?
Antworten
  • Object is the root-super class of any object in Java. All objects extend this class by default, even if there is no extends-section in signature of class.
  • Everything in Java is an object.
  • Object is an ordinary class. It has number of useful methods like equals, hashCode, toString. If any new class require to use these methods or override them it must contain "extends Object" section in it's signature.

Frage 2

Frage
List all methods in Object class which are allowed to be extended or overridden
Antworten
  • getClass
  • hashCode, equals
  • toString
  • clone
  • finalize
  • wait, notify, notifyAll
  • getMethods
  • valueOf
  • sleep, notify, notifyAll
  • equalsIgnoreCase
Zusammenfassung anzeigen Zusammenfassung ausblenden

ähnlicher Inhalt

Java Week 5 Object Oriented Programming
Troy Bowlin
GCSE AQA Biology - Unit 1
James Jolliffe
General questions on photosynthesis
Fatima K
GCSE AQA Physics - Unit 1
James Jolliffe
Chemistry 3 Extracting Metals Core GCSE
Chloe Roberts
Basic Immunology Principles
Robyn Hokulani-C
Java Practice 1
Ummm No
Chemistry 4 Fuels From Crude Oil GCSE Core
MattyWood
Photography
jastith
Chemistry 6 Extracting Vegetable Oil Core GCSE AQA
Chloe Roberts
Ecology
Fatima K