Java testing, java interview

Source: Internet
Author: User

Java testing, java interview

1. Can a ". java" source file contain multiple classes (not internal classes )? What are the restrictions? ,

There can be multiple classes, but only one public class is allowed, and the public class name is the same as the file name

2. Does Java have a goto?

Reserved Words in Java, but are not currently used in java

3. Tell us the difference between & and.

& Bits and logical operations, & is used for logical operations, & is used for short-circuit. Short-circuit means that when the first bit on both sides of the expression is false, the second bit is not executed.

4. How can I jump out of the current multi-nested loop in JAVA?

Use tags, for example, biaoji: Used in a loop body with a break

5. Can the switch statement be applied to byte, long, or String?

It can be applied to byte, because byte can be implicitly converted to int and cannot be applied to long and string, because they cannot be converted to int, so it cannot.

6. short s1 = 1; 1 = s1 + 1; what is the error? Short s1 = 1; s1 + = 1; what is the error?

The first is wrong, because different types cannot be directly calculated in this way, and the second is correct because the program can compile double-bit operators.

7. Can a Chinese character be stored in a char variable? Why? Yes. Because char stores unicode, and the unicode encoding type can contain Chinese characters, Chinese characters can be stored, but not unicode.

8. How many equals 2x8 in the most efficient way?

2 <3

10. When a variable is modified using the final keyword, can the reference not be changed, or can the referenced object not be changed?

The reference cannot be changed, but the referenced object can still be changed.

11. Describe how you optimize project performance?

Database optimization: storage creation process, triggers, and view OptimizationSQLStatement

Server optimization: memory initialization and connection pool optimization

The project is optimized logically.

12,Please describe the project process?

Project requirement analysis, project requirement document, project specification, outline design, detailed design, project development stage, project test stage, test document, project maintenance document, project launch trial run, project launch, post-project maintenance

13. In java, how do I define the type of money (currency?

Bigdecimal

14. If you did this project, please describe the personal module?

2015/05 -- till now: the company's task management and allocation system

Industry:Computer Software

JAVA Department Software Engineer

Development Environment:MyEclipse, MySql database, Tomcat

Project name:Company task management system

Project Introduction:The company's task management system is a management system designed to facilitate the tracking and management of the company's task assignment. Its main functions include page logon, personnel management, task release, and task view; the assignment of personnel permissions allows a leader to publish a task to himself or his/her subordinates and view the progress of the task. A task can be released to multiple people. ordinary employees can only release their own tasks and view their own tasks. this system is implemented based on EasyUi. The ajax technology encapsulated by Jquery is used to achieve the effect of refreshing pages.

User Management Module: used for logon and account management of company personnel

Task release module: displays the assignment of personnel tasks, task content, remarks, and task completion time.

Task View module: it can be divided into completed tasks and unfinished tasks. The task status can be changed in the unfinished section. If it is changed to completed, it is displayed in the completed module.

Permission management module: the Administrator account has the highest permissions. Based on the employee level, other personnel can be assigned the view permission for each module;

Personal responsibilities:It is mainly responsible for permission modules and viewing task distribution tasks, and uses EasyUi and ajax technologies to refresh the system and page.

Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.