Shang Xuetang Hundred Battles Programmer---Chapter 1 Interview Questions

1. What is your purpose in learning programming? What is the fastest way to learn programming?
Because I like programming. So I signed up for programming in college. I think people should at least fight for what they like in their lives, so I learned programming.
Of course, the fastest way is to type code, because if you don't type a lot of things, you don't know what kind of problems will happen, except when you solve the problem or the fastest.
What is the career plan for programmers? How can I get 100,000 annual salary, 300,000 annual salary, 500,000 annual salary?
work hard and learn more
3. How can a technical point be considered as learned? Need to be able to tacitly write it out?
I don't think dictation is necessary. This is too absolute. I think it is enough to know how to use it and know its principles. If you know the principle, dictation is probably also possible.
7. Speaking of computer language, why did the woman produce the virgin  according to the first, second, and third generations?
There is no concept of the first generation and the second generation. It is generally developed like that. Machine language, assembly language and high-level language are mainly for better communication between people and computers.
8. What are the core advantages of java that make it popular?
Object-oriented programming, cross-platform, distributed development mode, reliable, safe. Multithreading
9. What are the three versions of Java?
Answer: JavaME (mini edition, mainly develops desktop applications), JavaSE (standard edition), JavaEE (enterprise edition)
10.Which company invented Java? What is the current situation of this company? Why?
Sun company, it seems that it should be acquired by Oracle due to funding problems.
11. What is the cross-platform implementation of Java?
Answer: Because .java will be compiled into a .class file, and the java virtual machine is responsible for executing the .class file, as long as the correct virtual machine is installed on different operating systems, the same .class file can be executed, while other The language does not have a JVM virtual machine, so it cannot achieve cross-platform operation. This JVM virtual machine is a computer designed by java itself, which is equivalent to simulating another computer in your computer.
12. Is the Java language interpreted or compiled? Or both?
Answer: Both
13.What are the full names of JDK, JRE, and JVM?
JDK is development kit, JRE is development environment, JVM is java virtual machine
14. JDK contains JRE, is this sentence correct?
right
15. Under DOS, which key is used to automatically complete the command? Under DOS, which key is used to find the previously executed command?
Answer: TAB, you can use the up arrow in the arrow keys
16. Under DOS, what does the dir command mean? What does cd mean?
Answer: The command to display the disk directory, cd means to enter a certain folder
17. Why is it better to use JAVA_HOME to configure environment variables?
Answer: Because most programs will default to the environment variable to get the JAVA_HOME variable
18. Does the class name of a public class have to be the same as the file name?
Answer: yes
19. Programming style must: programming in pairs and indentation. Explain in words or code how to implement pair programming and indentation.
format
20. System.out.println("hi"); ----Can this code be executed smoothly?
Answer: to be discussed----
21. Can a Java source file write multiple classes? After compilation, will multiple class files be generated?
yes, no
22. When programming, why do you need annotations? Types of annotations?
Answer: Comments are used to add an explanation of this method, so that others can see what this method does. The types of comments are // , /**/
23. Can multi-line comments be nested?
No, it will cause a compilation error

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325979954&siteId=291194637