scjp
scjp question on enum
public enum Scale2 { GOOD(\'C\') { public char getGrade() { return grade; } }, BETTER(\'B\') { public char getGrade() {[详细]
2023-02-23 04:29 分类:问答A SCJP Question on topic Enums
From the SCJP Questions PDF book, I got this question.. 1. enum Animals { 2. DOG(\"woof\"开发者_StackOverflow中文版), CAT(\"meow\"), FISH(\"burble\");[详细]
2023-02-17 10:28 分类:问答equals and hashCode
I am running into a question about equals and hashCode contracts: here it is Given: class SortOf { String name;[详细]
2023-01-10 12:49 分类:问答Redefining static method in child class
I would like to know the reason why this is first allowedin Java (or oops in general) I remember that the static methods are common for both parent and child class[详细]
2023-01-07 16:01 分类:问答Doubt based on program in SCJP(EXAM 310-065)
class Building{ Building(){ System.out.print(\"b \"); } Building(String name){ this(); System.out.print(\"bn \"+name);[详细]
2023-01-06 18:31 分类:问答Java - When is it a compiler error and when is it a runtime exception?
I am currently studying for the SCJP certification using the Sierra and Bates Study Guide and in many of the self tests (mock exam questions) I keep running into the same problem - I can\'t tell wheth[详细]
2023-01-05 23:01 分类:问答Why is the output like this?
class Another { public void method(Object o) { System.out.println(\"This is in method which takes object\");[详细]
2023-01-03 21:43 分类:问答JVM specification and Java compiler code useful for SCJP preparation?
I\'m preparing the SCJP exam with the almost official study book ("SCJP Sun Certified Programmer for Java 6 Exam 310-065")[详细]
2023-01-02 22:32 分类:问答The limits of parallelism (job-interview question)
Is it possible to solve a problem of O(n!) complexity within a reasonable time given infinite number of process开发者_StackOverflowing units and infinite space?[详细]
2022-12-25 13:58 分类:问答《启航当风起时》第二季什么时候播出??
22543565757kss 2开发者_如何学JAVA022-04-19 10:56 电视剧《启航:当风起时》有第二季,在官方发布的彩蛋中,也暗示了将有第二部,两兄弟将再次合作,东山再起。据经典问答小编了解,有媒体记者从《启航:当风起[详细]
2022-12-24 21:52 分类:问答