当前位置:网站首页>Enumeration? Constructor? Interview demo
Enumeration? Constructor? Interview demo
2022-06-27 08:31:00 【C_ x_ three hundred and thirty】
The result of printing is ?
enum AccountType
{
SAVING, FIXED, CURRENT;
private AccountType()
{
System.out.println("It is a account type");
}
}
class EnumOne
{
public static void main(String[]args)
{
System.out.println(AccountType.FIXED);
}
}
The enumeration class has three instances , Therefore, call the construction method three times , Print three times It is a account type

边栏推荐
- sql注入之order by注入
- RMAN-08137 主库无法删除归档文件
- MySQL锁详解
- All tutor information on one page
- 游戏资产复用:更快找到所需游戏资产的新方法
- June 26, 2022 (LC 6100 counts the number of ways to place houses)
- 即构「畅直播」,全链路升级的一站式直播服务
- JS EventListener
- webrtc入门:12.Kurento下的RtpEndpoint和WebrtcEndpoint
- Ready to migrate to the cloud? Please accept this list of migration steps
猜你喜欢

ServletConfig与ServletContext

Creation process and memory layout of objects at JVM level

正确的理解MySQL的MVCC

Matlab tips (18) matrix analysis -- entropy weight method

盲測調查顯示女碼農比男碼農更優秀

Understanding mvcc in MySQL transactions is super simple

Matlab tips (19) matrix analysis -- principal component analysis

Reference | upgrade win11 mobile hotspot can not be opened or connected

Associated GIS: all roads lead to ue5 City

oracle怎样将字符串转为多行
随机推荐
Creation process and memory layout of objects at JVM level
数据类型占内存大小?LongVsObject
lvgl使用demo及说明2
[batch dos-cmd command - summary and summary] - environment variables, path variables, search file location related instructions - set, path, where, what if there are spaces in the path parameters of
Matlab tips (18) matrix analysis -- entropy weight method
JS EventListener
100% understanding of 5 IO models
Design of a solar charge pump power supply circuit
[11. two dimensional difference]
参考 | Win11 开启热点之后电脑不能上网
0号进程,1号进程,2号进程
Etcd教程 — 第五章 Etcd之etcdctl的使用
orthofinder直系同源蛋白分析及结果处理
[13. number and bit operation of 1 in binary]
MySQL environment variable configuration tutorial
ServletConfig and ServletContext
Helix QAC更新至2022.1版本,将持续提供高标准合规覆盖率
[notes on c++ primer] Chapter 3 string, vector and array
SIG associé: toutes les routes mènent à ue5
The difference between ArrayList and LinkedList