Java basics for Java programmer test interview
1. ==difference between equals and hashcode
① = Is used to compare whether a value is equal, or to compare whether the reference is equal, that is, to compare whether it points to the same object.
② The
20145326 "Java Program Design" The 5th Week study summary textbook Learning content Summary
Eighth Chapter
I. Grammar and inheritance structure
1. Using try, catch
When we write a program there are always errors caused by unexpected
Analyze problems
Unlike traditional encoding, base64 encoding is designed to confuse eight-byte data streams. In network transmission and email systems, base64 encoding is widely used. Base64 is not a confidential mechanism, but it does program
C # Sharp experience
Nanjing Institute of Posts and Telecommunications
Li Jianzhong (
Lijianzhong@263.net.cn
)
Lecture 2
Exception Handling
Exception Handling
??????? Structured exception handling is a necessary part of component design
Java2 test question list:
1. What is abstraction?
2. What are the three principles of object-oriented programming?
3. How to define an identifier?
4. What are Java keywords? Is null a Java keyword?
5. What data types does Java have? What are their
In java, a Thread is represented by a Thread object.Generally, every java program has a main method (not an applet), which is the entry point of the main thread.For a Thread, the entry point is not main, but the run method.Define a thread, mainly to
Next article: Summary and translation of SytleCop rules in code lookup tools. This article is mainly a suggested Rule point summarized from my personal point of view.
Recommended Rule points
1. standard XML comments must be added to common
1. in C #, use text or images to describe the differences between string str = null and string str =.Key answer: Describe the detailed space allocation. (10 points)A: string str = null indicates that no memory space is allocated to it, while string
The database has never been in touch, and I have learned a little about it because of my work needs. It took about one and a half months to find information and learn basic programming. It takes the most time to find information. Here I will
Type conversion Display Conversion
Implicit conversion
Custom Conversion
(1) implicit conversion: Generally, the conversion from low type to high type ensures that the value does not change.
Implicit numeric conversion:
From sbyte to short, Int,
Win32 API supports preemptive multi-threaded networks, which are useful for compiling MFC Network spider. Spider Engineering (Program) is a program on how to use preemptive multithreading technology to gather information with web spiders/robots on
This is what we thought after reading herb Sutter's "exceptional C ++" last time, because I was too lazy to update my blog and never wrote it down.
Generally speaking of three realms, many people will think of it ...... #1 see the mountains, see the
ArticleDirectory
Why should I initialize upted state exceptions?
How does CLR handle writable upted state exception?
Summary
AsProgramClerk, I think many people should have had experience dealing with exceptions. I believe many
The rfc1867 standard can be used to process files:1. Get the uploaded data at one time and analyze and process it.Read n moreCodeLater we found that there are currently no ComponentsProgramAnd some COM components use the request. binaryread method.
Abstract class
Abstract classes cannot be instantiated.Abstract classes, like other classes, allow definition of variables and methods.An abstract class can also define an abstract method. An abstract class method is not executed, but may be
The default access permission for classes and interfaces is internal. Interface members cannot add access modifiers. The default value is public, and Class Members are private by default.
In C #, static classes cannot implement interfaces. All the
Throw an exception
When an error data is found in a program but the program does not know how to handle it, an exception can be thrown. In C ++, throw is used to throw an exception. Syntax:
Throw error message;
In the preceding statement, throw is a
Title: normal
C #
Interview Questions1. in C #, use text or images to describe the differences between string STR = NULL and string STR =.
Key answer: Describe the detailed space allocation. (10 points)
A: String STR = NULL indicates that no memory
Why must I use exceptions? The answer is simple: Exceptions cannot be ignored.
Item9. use destructor to prevent resource leakage:The smart pointer auto_prt is used to put the cleanup code into its destructor. The core part is as follows:
Template
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.