Interview experience and question Bank for Java programmers

Recently planned to change the city, can't stand the fog haze of Beijing, so ready to flee. So has been in the interview, sorting out some of the recent interview problems, for your reference. It will include some small experience in the interview,

Java GUI programming

I. Vocabulary comprehensionTwo. FigureThree. Some componentsJTextField single-line text boxJTextArea Multi-line text fieldsJLabel LabelJComboBox drop-down listJcheckbox CheckJradiobutton Single-choiceJButton buttonFour. java.awt BagThe 1.AWT package

"Java face question" 6 determine if the following code is problematic

1. if(username.equals ("Zxx") {}2. int x = 1; return x==1? true:false;1. A variable calling the Equals method directly poses a security risk to the program, and calling the Equals method directly may throw a NullPointerException

"Java Daily question" 20170321

20170320 Problem Resolution Please click on the "Java daily" 20170321 "view (problem resolution in public, public number id:weknow619) below today's question. PackageMar2017; Public classQues0321 { Public Static voidMain (string[] args) {Ques0321

java-class loading mechanism (4)-Other

1.JVM initialization steps①, if the class has not yet loaded the connection, the virtual machine first loads and connects② the parent class has not been initialized, the parent class is initialized first③, if the class contains initialization

Java meta Annotations, simple cases

Annotations The program has Notes and Annotations* Note: For developers .* Note: to the computer to see .Annotations Use: The Learning Framework supports annotation development . " The notes provided by the JDK "

Java NIO (6) Selector

Java NIO SelectorA Selector is-a Java NIO component which can examine one or more NIO Channel ' s, and determine which channels was ready for E. G. Reading or writing. This is a single thread can manage multiple channels, and thus multiple network

Java Annotations Pros and cons

Advantages:1, save the configuration, reduce the configuration file size2, compile to see the correct or not, improve efficiencyDisadvantages:1, increase the coupling of the program, because the annotations are stored in the class file, and more

Representation of numeric values in Java

1. In the form of complement in Java2, the first positive and negative position, 1 is negative, 0 means positive. 3, the original code: a number of binary representation. 3 of the original code 00000011-3Original Code100000114, anti-code: Negative

Java environment variable Configuration

There are 3 main environment variables used in JAVA under Windows, Java_home, CLASSPATH, and PATH.1. ConfigurationRight-click Computer-Properties-advanced system settings, and select environment variables. Click New under the System Variables column

Java removes duplicate values from the array

The set method can be applied because the set method itself does not allow a heavy valueThe code is as follows: public static void Main (string[] args) {int[] a={1,1,1,1,1,1,2,2,2,2,2,2,2,3,3,3,3,3,3,3}; System.out.println (Arrays.tostring (a));

Java self-adding and self-subtraction

1 Public classADD {2 3 Public Static voidMain (string[] args) {4 inti = 0;5i=i++ + + +i;6 intj = 0;7j= ++j + j + + + j + J;8 intK = 0;9k=k++ + k++ + k++ + + +K;Ten intH = 0; OneH=++h + + +h; A intP1=0,p2=

1th Chapter Java IO system

Java.lang:java Basic LanguageJava.util:java Tool KitJava.io:io--->input/output (file), Read and write filesJava.sql: Manipulating DataJava.lang does not need to be imported, other packages need to be imported with importImport java.io.File;

Introduction to java locks and java understanding

Introduction to java locks and java understanding In concurrent programming, multiple threads often access the same shared resource. At this time, developers must consider how to maintain data consistency. in java, the synchronized keyword is often

Use Case of Spring control reversal container, spring container

Use Case of Spring control reversal container, spring container The Code is as follows: Spring-config.xml Address Package com. mstf. bean;/*** Address class and Employee class belong to the setter mode

Spring MVC pattern example (Decoupling Controller not used), mvc

Spring MVC pattern example (Decoupling Controller not used), mvc Product Package com. mstf. bean; import java. io. serializable;/*** Product class, which encapsulates some information, including three attributes * @ author wangzheng **/public class

Reflection and dynamic loading of bean to complete general servie and beanservie

Reflection and dynamic loading of bean to complete general servie and beanservie Recently, our department has a small project to manage the code tables used by all projects of the company, such as the Country Code and administrative division code.

Windows7 java-jdk1.7 installation and variable setting process, windowsjdk environment variable

Windows7 java-jdk1.7 installation and variable setting process, windowsjdk environment variable Jdk installation is rare and easy to forget. Here we will record it here. 1: jdk1.7 you can download one from anywhere on the Internet. Then install

Basic Principles of Struts1.x and implementation of the registration module, basic principles of struts1.x

Basic Principles of Struts1.x and implementation of the registration module, basic principles of struts1.x 1. Write JavaBean: User, which must inherit from the ActionForm class 1 package myuser; 2 3 import org. apache. struts. action. actionForm; 4 5

Struts file upload and struts2 File Upload

Struts file upload and struts2 File Upload Use two packages:One is the commons-fileupload-1.3.2.jar, the other is the commons-io-2.2.jar Jsp interface: Insert title here Do Action.Three members: 1. File file uploaded File 2. String fileFileName

Total Pages: 6206 1 .... 5733 5734 5735 5736 5737 .... 6206 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.