Soft questions:
1. There are several methods for activity redirection in Android:
2. What is the difference between hashmap and hashtable?
3. How to obtain the parameter values in jquery:
4. How to obtain JSON data in jquery;
5. struts2 Security Mechanism:
Zhitong Huifeng interview questions: 2013-7-111, public class test {
public static void main(String[] args) { System.out.println("17.0/0="+17.0/0);//1 System.out.println("17.0/0="+17/0);//2 }}
Write the above output results:
// 1: 17.0/0 = infinity
// 2: exception in thread "Main" Java. Lang. arithmeticexception:/by zero
At test. Main (test. Java: 11)
2. The classic "Daffodils" algorithm is as follows:
Public class shuixianshu {/*** title: print all "Daffodils" between and. The so-called "Daffodils" refers to a three-digit number, each digit cube is equal to the number itself. ** For example, 153 is a "Daffodils" because 153 = the power of 1 + the power of 5 + the power of 3. ** 1. program analysis: The for loop is used to control the number of 100-999. Each number is used to calculate one digit, ten digits, and hundreds of digits. **/Public static void main (string [] ARGs) {for (INT I = 100; I <= 999; I ++) {int gewei, Shiwei, baiwei; wei = I/100; Shiwei = (I-baiwei * 100)/10; gewei = I-baiwei * 100-Shiwei * 10; if (I = gewei * gewei + Shiwei * Shiwei + Wei * Wei) {system. out. println (I );}}}}
3. Calculate the prime number within 50:
// Obtain the int I, j; For (j = 2; j <= 50; j ++) {for (I = 2; I <= J/2; I ++) {If (J % I = 0) break;} if (I> J/2) {system. out. println (J + "is a prime number ");}
4. Number Search rules: 1, 2, 2, 3, 4, 6, (B )......
A, 8; B, 9; C, 10; d 11
5. Tomcat sets the port number in which directory and configuration file:
Go to the tomcat installation directory, enter the conf folder, and find the server. xml file. Open it in notepad and find the code:
<Connector Port = "8080" protocol = "HTTP/1.1"
Connectiontimeout = "20000"
Redirectport = "8443" type = "regxph" text = "yourobjectname"/>
Then modify the port value for what you need. For example:
<Connector Port = "80" protocol = "HTTP/1.1"
Connectiontimeout = "20000"
Redirectport = "8443" type = "regxph" text = "yourobjectname"/>
The websites we visit at ordinary times are changed to port 80.
7. If Windows is a 32-bit operating system, what is the maximum addressing space?
1) What is an addressing space?
Addressing space generally refers to the memory addressing capability of the CPU. In layman's terms, it is a question of how much memory can be used at most.
2) We often hear that 32-bit operating systems can use up to 4 GB memory. In most cases, this limit cannot be reached. For example, although my machine uses 4 GB physical memory, it only recognizes 3 GB.
Some friends say they can recognize the value range from 3.gb to 3.gb.
8. The key word used to generate thread mutex lock in Java is synchronized.
9. There are several ways to hide a DIV in HTML, for example, code ,;
10. Oracle backup statement:
11. How many bytes of a Chinese character in Oracle UTF-8?
12. Brief Explanation of JVM: