Question 1: The execution result of the following code:
class Person{ String name = "No name"; public Person(String nm){name = nm;} } class Employee extends Person{ String empID = "0000"; public Employee(String id){empID = id;} }
// Testcollect. javapackage COM. test; public class testcollect {private string name; private int age; Public String getname () {return name;} public void setname (string name) {This. name = Name;} public int getage () {return age;} public void
PrefaceWhether you are a newbie or an expert in programming, you will be amazed by the Infinite Charm of Sun's Java. Java brings you more than just the advantages of object-oriented, open, platform-independent, easy-to-use, secure, and "Write once,
Public class testseven extends thread {Private Static int X;Public synchronized void dothings (){Int current = X;Current ++;X = current;}Public void run (){DoThings ();}}
Which statement is true?A. Compilation fails.B. An exception is thrown at
Example 11:
Note the usage of length and length (): for example, string STR = "My name is wuyangping" is used to evaluate the length to Str. length (); but string [] STR = new string [5], the length of this is str. length.
Example 12:
The output
Author
Scea Part 1 prepparation
Debopam PoddarGreenhornJoined: Jun 21,200 5Messages: 21
Posted Friday, March 06,200 9 04:24:10
Hi I have passed scwcd 5 today with 95%.Now I am planning to do scea 5 Certification next. So cocould you please suggest the study material/books and sites for preparation.Thanks.
Kengkaj sathianpantaritRanch handJoined: Jul 05,200 5Messages: 1756
Posted Friday, March 06,200 9 14:30:29
Head first OOA DDesign Pattern
Every college student is a cet-4,cet-6 before the test;Every student in the accounting profession is yearn the CPA certificate;Each of the students of the legal profession has been the Secretary of the examination and sleep;What about every student who learns Java? Those Java-related certificates, which one is your target?SCJPSun certificated Java Programmer (SCJP), a Java certification examFor Java programmers, Sun introduces two certifications: Sun
From http://blog.sina.com.cn/s/blog_4a5ca024010008tj.html below is the text
Xiao Cui's translation of Virgo "Equals method and Hashcode method" (2007-06-22-21:04:42
Cui (folk also called Tri, namely CY, see chat Record series), Hunan people, more than 20 years old, unmarried. Once aj*q*051 class team leader, the existing translation of the "Equals method and Hashcode method", in this blog starting, we welcome.
Equals Methods and hashcode Method
Author: Manish Hatwalne
Original address: http://ww
principles are the foundation, and the foundation is not reliable. It is quite dangerous to build a skyscraper on the sand. The same is true for learning java. You must have a solid foundation to be able to work in the J2EE and J2EE fields. Taking the scjp (Sun-certified Java programmer) test is a good way, one of the reasons is to be able to afford your 1200 ocean examination fee, you will study harder, the second reason is that the
sand building skyscrapers, is quite dangerous. Learning Java is also so, you must have a solid foundation, you can in the EE, j2me field. Taking the SCJP (Sun Certified Java programmer) exam is a good way to one reason is that in order to make up for your 1200 ocean test fee, you will study harder, because the second is that the SCJP exam can make you play a solid foundation, it requires you to be as famil
Related communities: Sun official Chinese community http://gceclub.sun.com.cn Csdn-java Community http://community.csdn.net/expert/deeptree/RoomForum.asp? BIGROOMID=54 Sunjava Certified Community http://community.csdn.net/expert/deeptree/RoomForum.asp?roomid=5411 Java learning data provided by others FTP server: The data is quite a lot. 7*23 Hour boot address: ftp://218.28.64.19:22 download account: Javadown download password: Javadown upload account: Javaup upload password: javaup Single-Thread
Related communities:Sun official Chinese communityHttp://gceclub.sun.com.cnCsdn-Java CommunityHttp://community.csdn.net/expert/deeptree/RoomForum.asp? Bigroomid = 54Sunjava certification communityHttp://community.csdn.net/expert/deeptree/RoomForum.asp? Roomid = 5411
The FTP server provided by others for Java learning materials: there are quite a lot of documents.7*23 hours bootAddress: ftp: // 218.28.64.19: 22Download account: javadown download password: javadownUpload account: javaup upload pas
The introduction of enum from jdk1.5 is actually a special class, which is easy to write. JVM automatically encapsulates a lot of things for you.
Package scjp;
The compiled Enum (coffeesize above) also generates a coffeesize. Class
Decompilation through class assemblyJavap-C coffeesizeGet the following code:
Compiled from "test. java "
We can see that each element is actually a public static final instance of the enum class,
There are also:
Public
:
Servlet Model
Structure and deployment of Web Application Software
Secure thread and secure servlets
Assumerver pages (JSP)Use and develop custom tags
Design Template
Exam prerequisites
A necessary condition for the scwcd test is that you are a Sun Certified Java programmer (scjp ). It is clear that this test is not intended to examine your Java skills. It is assumed that you have the knowledge. The
people who do the same things will weaken the value of that skill. It is very much like the people who have tested the MCSE/MCSD, usually compared to the test of the Scjp/scjd to come to the lack of value, the former because there are too many people, and the latter test of less people, is just that. But it is not the representative of the MCSE, the quality of the test than the scjp of the people, also doe
Source: http://renyanwei.iteye.com/blog/258304We know that in Java, subclasses can inherit the parent class, and if the subclass declares a method that has the same name as the parent class, we all know that if you rewrite it, but in fact it is divided into two cases, that is, methods and variables in the inheritance of the cover and hide problems, these conceptual things seem boring, But in the interview or SCJP certification questions around these a
-renowned company, has launched Java and Solaris Technology Certification solutions for the most advanced technologies. Based on these certifications, enterprises can use these certifications as the criteria for judging recruitment talents, or as a basis for measuring the technical level of employees. In terms of technology, these certifications can also prove the technical competence of individuals.
Sun has always been a leader in technology and market share in the Unix field. The Java Technol
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.