basic java interview questions and answers

Alibabacloud.com offers a wide variety of articles about basic java interview questions and answers, easily find your basic java interview questions and answers information here online.

Java Collection related interview questions and answers

Java Collection related interview questions and answers Interview questions1.JavaWhat is a collection frame? What are some of the advantages of a collection framework? There are collections in each programming language, and the original

Regular Interview Questions and answers by a ribaba Java engineer, Baba java

Regular Interview Questions and answers by a ribaba Java engineer, Baba java 1. Implementation of Spring AOP and IOC Http://blog.csdn.net/tarena_lixy/article/details/7096114 Http://blog.csdn.net/kiss_vicente/article/details/6901295 Http://blog.csdn.net/it_man/article/details

115 Java Interview Questions and answers-ultimate list (I), 115 java

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

Java Multithreading and Concurrency basics interview questions and Answers

article to learn more about the callable,future example.6. 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 Futuretask class, it becomes very useful when we intend to rewrite some methods of the future interface and keep the original base implementation. We can just inherit from it and rewrite the methods we need. Read the Java

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

40 Java Collection interview questions and Answers

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 programming, allows us to easily change the implementation later.(4) Always use type-safe gener

40 Java Collection interview questions and Answers

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 programming, allows us to easily ch

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

Frequently asked spring-related questions in the Java interview (55 answers included)

). In the process of populating the handler, depending on your configuration, Spring will do some extra work for you: Httpmessageconveter: Converts the request message (such as Json, XML, and so on) to an object, converting the object to the specified response information. Data Transformation: Data conversion for a request message. such as string conversion to Integer, double, and so on. Data is initialized: Data is formatted for the request message. such as converting a string into a formatt

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

PHP classic interview questions (Basic I) with answers

Interview and written examination are often indispensable for job hunting and recruitment. as a php programmer, more or less will have similar experiences hellip; hellip. The following are my PHP interview questions collected and sorted out, I hope to help my colleagues and find a suitable php development job! (Three in total) The following is the

C # + ASP. NET programmers interview Basic Questions and answers

C # in the program, interfaces are used to define the functions of a class. the interface defines the expected methods, attributes, and event information. to use interfaces, each specific function must complete the described functions strictly according to the interface definition.If your resume says "familiar with/understand C #", you should be able to answer the following basic questions: What is the name

Concise answers to several Java interview questions

-threaded access to shared resources, due to improper access, usually a thread locked a resource A, but also want to lock resource B, and in another thread, the lock resource B, but also to lock resource A to complete its own operations, two threads want the other's resources, Instead of releasing their own resources, two of threads are waiting for a situation that cannot be performed.Java Network Programming approximate process:UDP programmingSend side:1, create the Socket object constructor Da

Abnormal Java programmer interview 32 questions (with answers)

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 class is that the more you say, the better (the more general the interview questions are ).  Fourth, the difference bet

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 Multithreading and Concurrency basics interview questions and Answers

multithreaded programs, multiple threads are executed concurrently to improve the efficiency of the program, and the CPU does not go idle because a thread needs to wait for resources. Multiple threads share heap memory, so creating multiple threads to perform some tasks is better than creating multiple processes. For example, Servlets is better than CGI because Servlets supports multithreading and CGI does not support it.How does the volatile keyword work in

Java Interview Questions and answers

process and data. Data access can only be performed through the defined interface. Object-oriented computing begins with the basic concept that the real world can be depicted as a series of completely autonomous and encapsulated objects that access other objects through a protected interface. 4. Polymorphism: Polymorphism allows different types of objects to respond to the same message. Polymorphism includes parameterized polymorphism and inclusion p

Java interview pen questions (Java basic interview questions)

object is accessed, nullpointerexception is thrown. Another scenario is that Java allows programmers to extend this semantic check. programmers can create their own exceptions and choose when to use the throw keyword to cause exceptions. All exceptions are subclasses of Java. Lang. thowable. 3. What is the difference between sleep () and wait?A: Sleep () is a thread-like thread method. As a result, this th

10 most common HTML5 interview questions with answers, html5 interview questions with answers

10 most common HTML5 interview questions with answers, html5 interview questions with answers This article shares the 10 most common HTML5 interview

Total Pages: 15 1 2 3 4 5 6 .... 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.