java interview questions for technical architect

Alibabacloud.com offers a wide variety of articles about java interview questions for technical architect, easily find your java interview questions for technical architect information here online.

Java Algorithm interview questions: Separate them with carriage return or space in the answer file .,

Java Algorithm interview questions: Separate them with carriage return or space in the answer file ., Package com. swift; import java. io. bufferedReader; import java. io. bufferedWriter; import java. io. fileInputStream; import

Interview Questions-java Basics-collections and arrays

threads are not able to modify objects in the collection that is being traversed by iterator. At the same time, iterator allows the caller to delete elements from the underlying collection, which is not possible for enumeration.What is the difference between 17.HashSet and TreeSet?HashSet is implemented by a hash table, so its elements are unordered. The time complexity of the add (), remove (), contains () method is O (1).On the other hand, TreeSet is implemented by a tree-shaped structure in

Huawei's Java interview questions

Huawei's Java interview questions Question No: 1 1. Public class test { Public static void changestr (string Str ){ STR = "welcome "; } Public static void main (string [] ARGs ){ String STR = "1234 "; Changestr (STR ); System. Out. println (STR ); } } Please write the output result: Question No: 2 1. Public class test { 2. Static Boolean Foo (char c ){ 3. syst

Sword refers to Java Implementation of offer programming questions-the integer power of the value of interview question 11, and sword refers to offer

Sword refers to Java Implementation of offer programming questions-the integer power of the value of interview question 11, and sword refers to offer Question: Implement the double power (double base, int exponent) function to calculate the power of base's exponent. Do not use library functions, and do not need to consider large numbers. Solution: the most common

Sword refers to the Java Implementation of offer programming questions -- interview question 6 re-constructs a binary tree, and sword refers to offer

Sword refers to the Java Implementation of offer programming questions -- interview question 6 re-constructs a binary tree, and sword refers to offer Question: Enter the result of the forward and middle traversal of a binary tree. Create a New Binary Tree. Assume that the input results do not contain repeated numbers.For example, if the input preorder traversal s

Sword refers to Java Implementation of offer programming questions -- interview question 13 deletes linked list nodes in O (1) time, and sword refers to offer

Sword refers to Java Implementation of offer programming questions -- interview question 13 deletes linked list nodes in O (1) time, and sword refers to offer Question: given a one-way linked list head pointer and a node pointer, define a function to delete the node at O (1) time. Given a one-way linked list, the time complexity of normal Chain List deletion is t

Java --------------- String basic interview questions

Java --------------- String basic interview questions Package stu. love. a;/* String: */public class StringDemo {public static void main (String [] args) {// the String is a constant. Once a String is created, the String ss = "hello"; ss = "world"; System. out. println (ss); // special case:/* when defining s2, go to the constant pool to check whether the string

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

Front-end interview-the difference between 2-java and JavaScript in difficult questions

configuration. While JavaScript is interpreted to perform without generating intermediate files, "read a sentence, execute a sentence", the execution can generally be done in three ways:1. The general browser comes with the JS interpreter, which can be used directly by the browser;2. Special interpreter software can be installed node. js, executing the. js file;3. Executed with the Web page, using the Third, the data typeJava is a strongly typed language, and when it comes to data, the declarat

Java Interview | Selected basic Questions

Analysis:Store basic data types1. Create an arr reference in the stack2. Create an int array of length 3 in the heap and initialize it, assigning the default value of 03. Point an ARR reference to an int array4. Re-assign values to each int value in an int arrayStore reference type User1. Create a Userarr reference in the stack2. Create a user array of length 3 in the heap and initialize it, assigning a default value of NULL3. Point the Userarr reference to the user array4. Create a user1,user2

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

Java multi-thread interview questions

Java multi-thread interview questions 1. What is the difference between ArrayList and Vecoter? Similarities and differences between Array and ArrayListI. Differences between Array and ArrayList#1. variables of the Array type must be instantiated at the same time (at least the size of the Array must be initialized), while ArrayList can only be declared first.For e

Java interview questions (86-115)

Java programmer interview questions (86-115) 86. In Struts 2, how does Action obtain the data that the user inputs from the page, and how does it transmit its own data to the view? A: There are three ways for Action to retrieve data from the page: 1) accept parameters through the Action attribute 2) obtain parameters through the domain model 3) ModelDriven )

Java multithreading interview questions Induction

Java multithreading interview questions Induction1. What are the implementation methods for multithreading? The following example shows the thread synchronization. (1) Java multithreading has two implementation methods: Inheriting the Thread class and implementing the Runnable interface. Thread implements the Runnable

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

Some finishing questions about the Beginner Java interview (partially transferred from others)

values that cannot be changed. The string provided by this StringBuffer class is modified. You can use StringBuffer when you know that character data is going to change. Typically, you can use Stringbuffers to dynamically construct character data.5. What are the similarities and differences between abnormal operation and general anomaly?An exception represents an unhealthy state that may occur during a program's run, and a run-time exception that represents an exception that may be encountered

"--java" Interview questions (2)

are characterized by the inability to define variables, and all methods are abstract methods . abstract classes can have variables and do not enforce the need for abstract methods .Inheritance of class 16 and implementation of interfacesParsing: Class Inheriting the parent class implements the interface with the class, which is essentially the same. is to either extend or rewrite the parent class or interface as a template on this template. In practical programming, programmers often need to in

Total Pages: 11 1 .... 7 8 9 10 11 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.