java j2ee interview questions

Discover java j2ee interview questions, include the articles, news, trends, analysis and practical advice about java j2ee interview questions on alibabacloud.com

Difference between Forward and Redirect in common JAVA interview questions, forwardredirect

Difference between Forward and Redirect in common JAVA interview questions, forwardredirect The user sends an HTTP request to the server, which may be returned to the user after being processed by multiple information resources. Each information resource uses the request forwarding mechanism to forward requests to each other, however, the user does not feel reque

Interview Questions Collection--java basic part (i)

Controller: When the user clicks the Submit button in the Web page, the controller accepts the request and invokes the appropriate model to process the request. The corresponding view is then called according to the result of the processing to display the results of the processing. MVC process: First the controller accepts the user's request, invokes the corresponding model for business processing, and returns the data to the controller. The controller invokes the corresponding view to

Java interview 32 questions

First, let's list these 32 questions. You can leave me alone and think about what it will do if the interview feels like. First, let's talk about the differences between final, finally, and finalize. Second, can anonymous inner class (anonymous internal class) be extends (inherited) other classes, or implements (implemented) interface (Interface )? Third, the difference between static nested class and inner

40 Java Collection interview questions and Answers

) Select the correct collection type as needed. For example, if you specify a size, we will choose an array instead of a ArrayList. If we want to traverse a map in order of insertion, we need to use TreeMap. If we don't want to repeat, we should use set.(2) Some collection classes allow you to specify the initial capacity, so if we can estimate the number of stored elements, we could use it to avoid re-hashing or resizing.(3) programming based on interfaces, rather than implementation-based prog

40 Java Collection interview questions and Answers

TreeMap. If we don't want to repeat, we should use set.(2) Some collection classes allow you to specify the initial capacity, so if we can estimate the number of stored elements, we could use it to avoid re-hashing or resizing.(3) programming based on interfaces, rather than implementation-based programming, allows us to easily change the implementation later.(4) Always use type-safe generics to avoid classcastexception at run time.(5) Using the immutable classes provided by the JDK as key to t

40 Java Collection interview questions and Answers

corresponding action, while the user's data to fill the corresponding actionform, and then the Actionform is distributed to action for processing.3.Action automatically calls the Excute method, in which the action takes the user-filled data from the Actionform and invokes the model (JavaBean) for processing, and then displays the results of the processing in a different view (JSP page)struts-config.xml:struts 's configuration file .It says that each user's request is handled and forwarded throu

Java Algorithm interview questions: Read all names from text files similar to the following, print duplicate names and repeated times, and sort by repeated times; read docx and read doc. Use the poi jar package to provide download,

Java Algorithm interview questions: Read all names from text files similar to the following, print duplicate names and repeated times, and sort by repeated times; read docx and read doc. Use the poi jar package to provide download, Read all names from text files similar to the following, print duplicate names and repeated times, and sort by repeated times 1, Zhan

More than 100 typical JAVA interview questions and answer analysis (1)

More than 100 typical JAVA interview questions and answer analysis (1) This article will discuss various types of interview questions in Java interviews, which allow employers to test candidate's

Frequently asked questions and partial answers in Java interview (2018)

after the real object is called.Proxy mode,The proxy class and the proxy class implement the same interfaceAn instance of a proxy class in a proxy classBehavioral patterns: Focus on communication between objectsSuch as: Responsibility chain mode, iterator mode, command modeResponsibility chain ModelSimilar interceptors, etc.Command mode:Separates callers from Callee's behaviorInterpreter mode:Each syntax is an interpreter classIterator mode:Change the collection class's view traversal and add a

Java Interview questions Summary

A few days ago in the Java interview problems encountered, this is only part of the problem, there are many questions in the interview about data structures and algorithms. Here to summarize, hope that the ability of people can try to do, and in the comment area to leave your answer, let everyone learn from each other.

Sword refers to the Java Implementation of offer programming questions-interview question 5 prints the linked list from start to end and offer from end to end

Sword refers to the Java Implementation of offer programming questions-interview question 5 prints the linked list from start to end and offer from end to endTopic Description * sword refers to offer interview question 5: print the linked list from the end to the endEnter the head node of a linked list and print the va

The most complete Java face test questions (i) you'll meet __java sooner or later in the interview.

Frontier Dream Workshop 2017-04-18 18:14 Most of the Java interview is divided into written and interview, the following issues are cutting-edge education small series according to the major IT enterprises interview asked the questions sorted out, such as the need for releva

An example of-java design pattern for interview questions

Interview questions-java Design Pattern Example 1, adapter modeInvolves three roles: Target destination interface, Adaptee source role, adapter adapter,adapter The source interface to the target interface, inherits the source interface, and implements the target interface .Many examples of Java I/O operations are:Input

Some small knowledge and interview questions in Java

separately, which belongs to the salvage function operation.Interview question: Please explain the difference between ArrayList and Vector.· These two classes are subclasses of the List interface;· The Vector class is provided at JDK 1.0, and the method of operation provided is synchronous, so it is thread-safeThe Operation class;· The ArrayList class is provided at JDK 1.2, and the method provided is asynchronous, so it belongs to the non-linearProcess-safe Operation classes.If later in develo

Java interview questions: how to sort HashMap key values

Java interview questions: how to sort HashMap key values In Java, HashMap is a data structure used to store "key" and "value" Information pairs. Unlike Array, ArrayList, and lists, it does not maintain the order of inserted elements.Therefore, sorting HashMap Based on keys or values is a very difficult

Ali Java Development interview Frequently asked Questions summary 3

into the corresponding method to invoke the logical layer of the method to achieve response to the customer.There are no doget, dopost, and so on in the Servlet interface and Genericservlet, these methods are defined in HttpServlet, but all return error information, so, each time we define a servlet, Must implement these methods such as Doget or Dopost.Each custom servlet must implement the Servlet interface, and the Servlet interface defines five methods, of which the more important three meth

Interview Questions-java Basics-garbage collection

(throughput) collector?The throughput collector uses a parallel version of the new generation garbage collector, which is used for medium-sized and large-scale data applications. The serial collector is sufficient for most small applications, which require about 100M of memory on modern processors.7. In Java, when can objects be garbage collected?This object can be recycled when the object becomes inaccessible to applications that currently use the o

Java Multithreading and Concurrency basics interview questions and Answers

solves this problem for us. After the online pool submits the callable task, a future object is returned, using which we can know the status of the callable task and get the result of the execution callable returned. The future provides a get () method so that we can wait for callable to end and get its execution results.What is Futuretask?Futuretask is a fundamental implementation of the future, and we can use it with executors to handle asynchronous tasks. Usually we do not need to use the Fu

Java Collection framework grooming (with classic interview questions)

. At the same time if there are multiple threads accessing Hashmap,collections.synchronizedmap () can be substituted, generally hashmap more flexible.10. Why is the vector considered to be obsolete or unofficially deprecated? Or why we should always use ArrayList instead of vectors.You should use ArrayList instead of vectors because by default you are non-synchronous, vectors synchronize each method, you almost never do that, and usually you want to synchronize the entire sequence of operations.

Java interview questions: 10 errors

in February. The first day of 1751 in England was March 25, 11 days worse than France.After the United States adopted the Gregorian calendar, it went back hundreds of years, so that the dates originally recorded could be expressed in two calendars (usually to provide two dates for more precise purposes). For example, George Washington's birthday changed from February 1731 11 to February 1732 22.When you read a volatile variable in a thread, you can eventually read the value that it updated.A f

Total Pages: 15 1 .... 7 8 9 10 11 .... 15 Go to: Go

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.