initialization blocks;
3. The final modified instance member variables must specify the initial values when declaring variables or non-static initialization blocks or constructors;
4. The final modified member variables cannot be assigned a new value once they are assigned an initial value;
5. The final modified member variables cannot be accessed before the specified initial values (before initialization;
6. Local variables modified by final. Because the system does not initialize local variab
, Marcus Green three sets of questions). 3, 61% Pass, suggest to the Sun's Web page before the test to do the first sun-given sample. Sun Sample URL: Https://tmn.sun.com/WLC/servlet/GuestLoginServlet?id=programmer 4, to pay attention to thread, more weight. Add a little to the constructor of every low-level stream, high-level stream, reader and writer of java.io.*, similar to listener, Collection and so on, it is best to compare the JDK inside the instructions, the difficulty will be like th
correct, because if super. processTextEvent (te) is not added, the registered listener will not be awakened.
Notes for the SCJP exam
● Profound understanding of object-oriented ideas
Java is a pure object-oriented programming language. Before we officially use Java for development, we must transfer our way of thinking to a completely object-oriented world. If you cannot do this, you cannot understand the essence of the Java language and cannot wri
Source: Cherami, Java Research Organization
The purpose of writing this article is to summarize the knowledge points of learning java and help others learn java. I personally feel that java is indeed a good programming language, to learn java well, you must first master the features of java. These features can be fully reflected in the scjp set of questions, and the knowledge points of the set of questions are in place, these questions must
the same type call the same method and present different behavior characteristics. This is polymorphism.
It should be noted that the referenced variable can only call the method of its type during compilation, while the method of its runtime type is executed during execution. In the code above, if the car variable executes the run () method, it cannot be compiled because the car type does not have the run () method during compilation. Although the car variable points to an object, it does have
My scjp was reported in last middle October. At that time, the scholarship was evaluated. There were 1200 yuan. It was not very busy this semester, and the scjp in Wuhan said it was a promotion, making $750, it is said that it will be RMB 1250 this year. It is a pity to miss it if you don't report it now. So I went to Wuhan aike (the fifth floor of an office building opposite China's south 2 door, which is
I have been busy researching this article some time ago. After the test, I will take some time to rest and post several articles.
My scjp was reported in middle October. At that time, the scholarship was evaluated. There were 1200 yuan. It was not very busy this semester, and the scjp in Wuhan said it was a promotion, making $750, it is said that it will be RMB 1250 this year. It is a pity to miss it if you
Scjp 1.4 is the first in a series of Java certification exams launched by Sun Microsystems. It is the first step for many programmers to become excellent Java developers.
This test tests the basic knowledge of Java and requires a deep understanding of the syntax and semantics of the language.
1. participate in training or self-study Java classic courses. If you have C language and object-oriented basics, you only need to learn sl275 and jdk1.4api by y
Example 1:
1. final int a = 1;
2. final int B;
3. B = 5;
4. int x = 0;
5. switch (x)
6 .{
7. case:
8. case B: // Exception
9 .}
In a Switch (condition), the condition can only be of the byte, short, int, and enum (version 1.5) types.
Example 2:
1. switch (x)
2 .{
3. case 1:
4 .{
5. System. out. print ("123 ");
6. break;
7 .}
8. case 2:
9 .{
10. System. out. print ("456 ");
11. break;
12 .}
13 .}
Example 3:
Beijing: ======================================
Galaxy Network Education Center [cn2] address: A3 layer of Miyagi Prefecture center zip code: 100044 Tel: 010 62279210,622 79230, 620789 Fax: 6204-0553,62279227. e-mail: test@milkyway.com.cn, educ@milkyway.com.cn, master@milkyway.com.cn, david@milkyway.com.cn URL: www.milkyway.com.cn
Beijing Tsinghua Science and Technology Economic Information Consulting Center [cn29] address: Tsinghua University Old Hall 301 zip code: 100084 Tel: 6278-1753,627
collection is guaranteed to be immutable.C. The elements in the collection are guaranteed to be unique.D. The elements in the collection are accessed using a unique key.E. The elements in the collection are guaranteed to be synchronizedAnswer: A, CComment: The TreeSet class implements the Set interface. Set is unique among the elements, and option C is correct. Because the tree-like storage method is used to organize elements in sequence, option A is also correct.Example 7:True or False: Reader
Java.lang contains some classes that form the core of the language, such as String , Math , Integer and the Thread . java.awt contains a toolkit for composing abstract windows ( AWT class, the package is used to build and manage the graphical user interface of the application. Java.applet contains the executable applets a class of special behaviors. The java.net contains classes that perform network-related operations and classes that handle interfaces and Uniform Resource Locators (URLs) . The
I took the test this morning.Scjp(Sun Certified Java programmers), passeD with 98%. One question is correct, and the others are correct. As you said, the scjp test is relatively simple, but I stillIt took more than one month to prepare, because the examination cost was too high $1250. Someone said on www.javaunion.com last timeI don't know whether it is true or false as long as 800 yuan. I have already paid for it.Based on the principle of resource sh
Scjp, scwcd, Oca, OCP
Http://java.sun.com/javaee/downloads (Java ee 5 SDK Preview (des Sun Java System Application Server PE 9 beta))
The advantages of the Java ee 5 platform: A conversation with distinguished engineer Bill Shannon
By Janice J. Heiss, March 2006
Articles Index
Version 5 of the Java platform, Enterprise Edition (Java EE, formerly referred to as J2EE), has arrived. i
Hope that the knowledge points will be helpful to those who are preparing to pass the scjp exam! If there are errors, you are welcome to criticize and correct them.
The thread class is defined in the Java. lang package. Sleep () and yield () are static methods of thread. However, wait (), Policy (), and policyall () are instance methods of the object class. To start a thread, you must call the START () method. However, the specific time when the thr
generally required to be a child type instance (the parent type is the compilation type, and the runtime type is the child type ). Otherwise, a classcastexception exception is reported during the execution even though it can be passed during compilation.
4. In case 3, use the instanceof operator to determine before forced type conversion. The first operand of the instanceof operation is usually a reference type variable, and the second operand is generally a class or interface, such as "barn1 i
the most primitive superclass or interface, with only the most basic skills. The top layer absorbs the skills at each layer and develops its own unique skills. When an object is born at a level of the pyramid, it can only survive at this level or lower level of birth. Even if it changes to a disguise, although it can be used for a while, it will inevitably show up because of insufficient skills when it is really working. However, there are also some real super objects, although they are natural
Java Programmer's Certification Sun Certified Java Programmer (SCJP)
Course: SL-275 Java language programming
This course enables students to learn how to use standard Java Development kit,v1.1 (JDK) to develop applications and applets. In this course you will learn the syntax of the Java language. How to use Java to create a graphical user interface (GUI), event handling mechanism, exception handling, and to gain practical programming experience by d
.
Step 02: Check whether the parent category provides a parameter-free constructor. If no parameter constructor exists, the subcategory should
Call super (Hangzhou) or this (...) in the second line of the constructor (...). If no super (callback) or
This (...) should cause compilation to fail!
Step 03: Check whether the overwriting method meets the rules (see section 9-4: overwriting method).
Step 04: Check whether multiple types are used (variables or parameters declared with upper-layer types
methods.
8. Usage of constructor [2006.7.8]
/*** @ Author Zhu Xiang* @ Creation date:* @ Organization: Three Gorges University* @ Email: zhuxiang_33@163.com* @ QQ: 75722549.*/Package cn. test. certificationOther;
Public class DefaultConstructor {Public static void main (String args []) {Child child = new EveryClass (1 );}
}
Class Parent {// This can be seen as automatic addition:// Public Parent (){// Super ();//}}
Class Child extends Parent {Public
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.