上一页 1 2 3 4 5 6 ··· 20 下一页
摘要: How many types of exception can occur in a Java program? There are mainly two types of exceptions: checked and unchecked. Here, an error is considered 阅读全文
posted @ 2020-04-16 17:09 CodingYM 阅读(356) 评论(0) 推荐(0) 编辑
摘要: How to make a read-only class in Java? A class can be made read-only by making all of the fields private. The read-only class will have only getter me 阅读全文
posted @ 2020-04-11 21:21 CodingYM 阅读(258) 评论(0) 推荐(0) 编辑
摘要: Why is multiple inheritance not supported in java? To reduce the complexity and simplify the language, multiple inheritance is not supported in java. 阅读全文
posted @ 2020-04-09 19:31 CodingYM 阅读(321) 评论(0) 推荐(0) 编辑
摘要: What if I write static public void instead of public static void? The program compiles and runs correctly because the order of specifiers doesn't matt 阅读全文
posted @ 2020-04-08 22:32 CodingYM 阅读(680) 评论(0) 推荐(0) 编辑
摘要: Description: In a given integer array nums, there is always exactly one largest element. Find whether the largest element in the array is at least twi 阅读全文
posted @ 2019-11-28 16:29 CodingYM 阅读(124) 评论(0) 推荐(0) 编辑
摘要: Description: In a row of seats, 1 represents a person sitting in that seat, and 0 represents that the seat is empty. There is at least one empty seat, 阅读全文
posted @ 2019-11-28 15:17 CodingYM 阅读(130) 评论(0) 推荐(0) 编辑
摘要: You are given a license key represented as a string S which consists only alphanumeric character and dashes. The string is separated into N+1 groups b 阅读全文
posted @ 2019-11-26 16:27 CodingYM 阅读(230) 评论(0) 推荐(0) 编辑
摘要: Description: The Hamming distance between two integers is the number of positions at which the corresponding bits are different. Now your job is to fi 阅读全文
posted @ 2019-09-25 10:47 CodingYM 阅读(173) 评论(0) 推荐(0) 编辑
摘要: Description: Given a circular array (the next element of the last element is the first element of the array), print the Next Greater Number for every 阅读全文
posted @ 2019-09-24 15:36 CodingYM 阅读(181) 评论(0) 推荐(0) 编辑
摘要: Description: A full binary tree is defined as a binary tree in which all nodes have either zero or two child nodes. Conversely, there is no node in a 阅读全文
posted @ 2019-09-24 15:16 CodingYM 阅读(238) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 ··· 20 下一页