Java interview question 23, java question
1. Which of the following statements about the role of Spring MVC's core controller DispatcherServlet is false ()
A. It is responsible for receiving HTTP requests.
B. Load the configuration file.
C. Implement business operations
D. initialize the Application Object ApplicationContext.
Correct answer: C
SpringMVC is a modu
115 Java Interview Questions and answers-ultimate list (I), 115 java
Object-Oriented Programming (OOP)
Java is a computer programming language that supports concurrency, class-based, and object-oriented. The advantages of object-oriented software development are listed below:
• Code development is modularized to fac
example:What exactly is boxing and unpacking, boxing is that the compiler performs a boxing operation after the underlying type is changed to the corresponding object type, and the reverse is the case. The following blog is a special introduction to Java Boxing and unpacking to share with youHttp://www.cnblogs.com/dolphin0520/p/3780005.html= = and equals I used almost every day, before this I did not care too much about the differences, and later loo
Reference Address: http://blog.csdn.net/speedme/article/details/22398395A few words like, copy down:
There was no collection on Earth (only the array reference C language) but someone wanted it, so there was a collection
Some people want an array that can be automatically expanded, so there's a list
Some people want to have no duplicate arrays, so there's set
Some people want to have automatic sorting of the number of groups, so with treeset,treelist,tree**
Same point:1
, avoid concurrency, as for code tuning, these need to accumulate, such as refactoring, factories, etc. Database tuning I'm not quite sure of that. Index and stored procedures, specific reference: MySQL Database tuning 21 best practices, other database tuning aspects look for yourselves. 5. Talk about your understanding of distributedA: Personal understanding: Distributed is to split a system/business into multiple subsystems/sub-business to work together, this process is called distributed, t
This article will be frequently encountered in the interview of Java Technology Point of a comprehensive in-depth summary, help us in the interview more handy, not to participate in the interview students can also take this opportunity to comb their knowledge system, to check the leakage of the vacancy (read this artic
[LeetCode-interview algorithm classic-Java implementation] [001-Two Sum (Sum of Two numbers)], leetcode -- java [001-Two Sum (calculate the Sum of Two numbers )]Original question
Given an array of integers, find two numbers such that they add up to a specific target number.The function twoSum shocould return indices of the two numbers such that they add up to the
1 classdemo04{2 Public Static voidMain (string[] args) {3 //logical Operators4 5 //Example 16System.out.println (true|falsefalse);7 //result True8 //The priority of, in the Java language is higher than |9 Ten One //Example 2 A //three-mesh operator: relationship expression? value 1: Value 2; - intA = 10; - intb = 5; the intc = (a>b)? (a=4):(b=5); - Sy
PackageCom.swift;Importjava.util.ArrayList;Importjava.util.Collections;Importjava.util.List; Public classArray_reverse { Public Static voidMain (string[] args) {/** with array a[n], the order of the array elements is reversed in Java code*/ inta[]={11,8,2,24,90,23}; //First, you can reverse the array elements by using the Set methodListNewArraylist(); for(Integer i:a) {list.add (i); } collections.reverse (list); for(Integer i:list) {Sy
machine stack describes the memory model that is executed by the Java method: When each method is executed, a stack frame (stackframe) is created to store the local variable table, the operand stack, the dynamic link, the method exit, and so on.Heap:: Storing object instancesDirect Memory: NIO use2.java class Loading processThe Java Virtual machine loads the dat
) = 12math. Round (-11.5) =-11round method returns a long integer closest to the parameter. After the parameter is added to 1/2, ask for its floor.
11th, short S1 = 1; S1 = S1 + 1; what is the error? Short S1 = 1; S1 + = 1; what is the error?
Short S1 = 1; S1 = S1 + 1; (S1 + 1 is an int type and requires forced conversion) Short S1 = 1; S1 + = 1; (can be compiled correctly)
12th. What is the difference between sleep () and wait?
Sleep is a thread method, which causes the thread to suspend the e
: "I don't know, but I think ...", if too much bravado will only let the interviewer doubt your ability, it is likely to failed, but all the questions asked by the interviewer can not fight, do not work hard, The word "I don't know" is over.
Prepare for writing code at all times
Every programmer is prepared to write code during an interview, write code must follow the basic rules, such as: like loops, if co
; k ) TestFunction (k, J, i);On the basis of scenario one, this scheme puts the instantiation of the cyclic variables out of the loop, which can further reduce the number of instances of the related cyclic variables, and the scheme time-consuming situation is as follows:
Variable
Instantiation (number of times)
Initialization (number of times)
Comparison (number of times)
Self-increment (number of times)
I
1
1
10
1
Java Algorithm interview question: recursive algorithm question 2 1st people 10, 2nd people two years older than 1st people, recursive in turn, please use recursion to calculate the size of 8th People ?, Java Recursion
Package com. swift; public class Digui_Return {public static void main (String [] args) {/** recursive algorithm question 2 1st people 10, 2nd pe
Java programmer interview book-I ++, java book-IWhat are the output results of the following programs?
public class program2 { static { int x = 5; } static int x,y; public static void main(String[] args) { x--; myMethod(); System.out.println(x + y++ + x); } private static void myMethod() { y=x++ + ++x; }}The
Java interview question summary and java question Summary1) What design patterns have you used? One by hand (except for a singleton); the factory mode, the facade mode (like the service layer); the proxy Mode 2) What is the core of springmvc, how is the request process handled and how is the reversal implemented? 1. The user sends the request to the front-end con
Java custom generic interview questions: receive any array to reverse, java custom
You can only operate on a certain type for reversal without using the generic type.
The Code is as follows:
package com.swift.fanxing;import org.junit.Test;public class RenyiReverse { @Test public void test() { int arr[]=new int[] {1,10,6,9,2}; reverse(arr);
not define its own Equals method, it inherits the Equals method of the object class, and the implementation code for the Equals method of the object class is as follows:Boolean equals (Obejct o) {This==o;}This means that if a class does not define its own Equals method, its default Equals method (inherited from the object class) is using the = = operator, and whether the object pointed to by the two variables is the same object, using equals and using = = will get the same result. If the compar
Java interview questions, java questions
1. storage structures used by stacks and queues
Chain storage and sequential Storage
2. understanding of time complexity and space complexityTime Complexity: Number of statement executions in an algorithm, which is T (n). When n changes, it is O (f (n). For example, constant O (1 ), O (n2), O (nlog2n)Space complexity: t
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.