Java Core. Basics

Gadget
Quiz by Gadget, updated more than 1 year ago
Gadget
Created by Gadget almost 6 years ago
224
8

Description

Questions about basics in Java Core

Resource summary

Question 1

Question
What is the general meaning of Object in java?
Answer
  • 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.

Question 2

Question
List all methods in Object class which are allowed to be extended or overridden
Answer
  • getClass
  • hashCode, equals
  • toString
  • clone
  • finalize
  • wait, notify, notifyAll
  • getMethods
  • valueOf
  • sleep, notify, notifyAll
  • equalsIgnoreCase
Show full summary Hide full summary

Similar

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