简体   繁体   English

JVM 规范和 Java 编译器代码对 SCJP 准备有用吗?

[英]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")我正在准备 SCJP 考试,几乎是官方的学习书(“SCJP Sun Certified Programmer for Java 6 Exam 310-065”)

I understand that Java programming is about writing code that fulfills a certain high-level contract;我明白 Java 编程就是编写满足某种高级契约的代码; So that Java can stay platform-independent.这样 Java 就可以保持平台无关性。

However, I have trouble understanding and remembering things when it comes to highly specific SCJP items (and they are numerous)但是,当涉及到高度特定的 SCJP 项目时,我很难理解和记住事情(而且它们很多)

The book stays high-level and does not provide examples of how one compiler would handle things.该书停留高层并没有提供一个编译器将如何处理事情的例子。 This is the same thing for runtime issues (JVM level): things are too much abstract for me.这对于运行时问题(JVM 级别)来说也是一样的:事情对我来说太抽象了。 Rules often seems arbitrary and therefore, with no well defined purpose, are difficult to remember.规则通常看起来很随意,因此没有明确的目的,很难记住。 Or maybe it's that sometimes I just don't get the underlying purpose.或者也许是有时我只是没有得到潜在的目的。

And here is the question:这是问题:

Would a JVM specification and/or some java compiler code help in preparing the SCJP? JVM 规范和/或一些 Java 编译器代码是否有助于准备 SCJP? Have you had the need for such material or is the book sufficient enough?您是否需要这样的材料,或者这本书是否足够? Also, please share the resources you used, apart from the book.另外,请分享您使用的资源,除了本书。

HI I am SCJP certified person.嗨,我是SCJP认证的人。 There will no be any questions regarding JVM specification and compiler code.I refered Kathy sierra book.I have studied this book completely.关于JVM规范和编译器代码不会有任何问题。我参考了Kathy sierra的书。我已经完全研究了这本书。 I have given some mock online exam.我已经进行了一些模拟在线考试。 That was enough for me to crack the exam.这足以让我通过考试。

Your question is hard to understand.你的问题很难理解。 What does "does not provide examples of how one compiler would handle things" mean? “不提供一个编译器如何处理事情的例子”是什么意思? You thought that it was important to italicize "one" - why?你认为斜体“一”很重要——为什么?

I'm not sure what you mean by "Java compiler code help."我不确定“Java 编译器代码帮助”是什么意思。

I don't believe a Java compiler specification would be any help at all.我认为 Java 编译器规范根本没有任何帮助。

The SCJP tests how well you know the Java core packages on the day you take the test. SCJP 测试您在参加考试当天对 Java 核心包的了解程度。 It's unfortunate that you have to know some esoteric things to pass.不幸的是,您必须知道一些深奥的事情才能通过。

But I can tell you that the things you are asked to learn are fundamental: You have to know the language syntax to be able to code it well.但我可以告诉你,你被要求学习的东西是基本的:你必须知道语言语法才能很好地编码。

And remember that the certification is only a milepost towards the real goal: being proficient enough with the language to write good code.请记住,该认证只是实现真正目标的里程碑:精通该语言以编写好的代码。 The certification test is not sufficient for that.认证测试是不够的。 You'll have a lot more work and learning to do, even if you pass the test.即使您通过了考试,您也会有更多的工作和学习要做。

I have the SCJP certification, and the Sierra book was sufficient for me.我有 SCJP 认证,Sierra 的书对我来说就足够了。 I never worried about the JLS or particular implementations of the JVM.我从不担心 JLS 或 JVM 的特定实现。

There are some questions, particularly about concurrency, where the correct answer is that one cannot know the output, as it depends on the JVM.有一些问题,特别是关于并发的问题,正确答案是无法知道输出,因为它取决于 JVM。 In such cases, if you were an expert in a particular JVM implementation, it could actually hurt you.在这种情况下,如果您是特定 JVM 实现的专家,它实际上可能会伤害您。

If you find it difficult to remember some of the test items, then you should probably practice writing code the uses those items, until it seems more natural.如果您发现很难记住某些测试项目,那么您可能应该练习编写使用这些项目的代码,直到它看起来更自然。

Finally, don't be discouraged if you fail the mock exams included with the Sierra book.最后,如果您未通过 Sierra 书中包含的模拟考试,请不要气馁。 They are absolutely brutal.他们绝对是野蛮的。 I think I barely failed all three, and then smoked the real exam.我想我几乎没有不及格这三个,然后抽了真正的考试。 The important thing isn't passing the mock exams, but giving them your best shot, and then coming to understand why you missed each question.重要的不是通过模拟考试,而是给他们最好的机会,然后明白为什么你错过了每一道题。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM