博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
Java interview question
阅读量:5897 次
发布时间:2019-06-19

本文共 650 字,大约阅读时间需要 2 分钟。

  1. what is the difference between overriding and overloading?

Overriding is resolved at runtime while overloading is compile time.

Override: is a language feature that allows a subclass to provide a specific implementation of a method. The overriding method in subclass has same name, same parameters and same return type as the method in the parent class. static, private and final methods are not overridden in Java.

Overload: if you have two methods with same name in one class with different method signature like different number of parameters, type of argument(return type is not part of method signature)

  1. Difference between HashMap and Hashtable?

转载地址:http://ovasx.baihongyu.com/

你可能感兴趣的文章
sap scriptfom 多语言翻译
查看>>
GSON学习笔记之初识GSON
查看>>
Python安装模块
查看>>
实现超级简单的bug管理系统
查看>>
MVC webapi,Action的分别拦截器
查看>>
BZOJ 4152: [AMPPZ2014]The Captain(最短路)
查看>>
Java集合中的AbstractMap抽象类
查看>>
没什么技术含量的Remove Before Flight
查看>>
【转】Java 有值类型吗?
查看>>
图像滤镜艺术---(Lightleaks Filter)漏光滤镜
查看>>
[LeetCode] Find Anagram Mappings 寻找异构映射
查看>>
--Too small initial heap for new size specified
查看>>
黄聪:3分钟学会sessionStorage用法
查看>>
17monipdb根据IP获得区域
查看>>
Entity Framework 全面教程详解(转)
查看>>
模拟源码深入理解Vue数据驱动原理(2)
查看>>
Hibernate的配置中,c3p0连接池相关配置
查看>>
024-Spring Boot 应用的打包和部署
查看>>
linux的fork()函数具体解释 子进程复制父进程什么
查看>>
js 温故而知新 用typeof 来判断一个未定义的变量
查看>>