32 common Java base-plane questions

1. What is a Java virtual machine (JVM)? Why is Java called a "platform-agnostic programming language"? A Java Virtual machine is a virtual machine process that can execute Java bytecode. The Java source file is compiled into a bytecode

3.Java Foundation: Creation and use of String objects

I. Common ways to createString s1= "ABC";String s2= "ABC";S1==s2 ==> TrueParse: S1 and S2 point to the same string pool addressTwo. How to create infrequentlyString s1=New string ("abc");String s2=new string ("abc");;S1==s2 ==> falseParsing: S1

Convert Java object to JSON format

Use JSON-lib to convert a Java object to a JSON string After learning to use Ajax in J2EE, sometimes the client data returned from the server is an object. It is easy to make errors when you manually piece together the JSON string. Google knows

Old goods are packed during the Chinese New Year, scatter Java game source code

The New Year is approaching, and the younger brother wishes everyone a prosperous family and a prosperous family, smooth sailing, great fortune, and great fortune ~~~Because the younger brother's base code was badly under-powered at the end of the

Java. Lang. outofmemoryerror: Unable to create new Native thread

I. Understanding: First, we use the followingTest procedureTo understand this problem:Running Environment (it is worth noting that different environments have different results): 32-bit Windows XP, Sun JDK 1.6.0 _ 18, eclipse 3.4,Test

Member variables defined in interfaces in Java

All variables in the interface are public static final. So you can write:Public static final int I = 10;OrInt I = 10; (part can be omitted) Note that the initial value must be assigned to the variable during the declaration. Explanation: First, you

How to Learn How to quickly become a master of Java)

"No other, only hand-cooked ". However, Java private school is willing to write some experiences, so that later users can take less detours and help others is the greatest pleasure! To learn java well, you must first understand the general

Reading data in PDF using Java

Using Java to read data in PDF files: Step 1: Download The PDFBox-0.7.2.jar. Provide one: http://pdfhome.hope.com.cn/Resource.aspx? Cid = 63844604-5253-4ae1-b023-258c9e324061 & rid = 20cd8f94-1cee-40b6-a3df-0ef024f8e0d2 unzip the Lib file under the

Java-based cross-platform performance. Differences between JDK and JRE

  I have been working on report development (outsourcing project of the insurance system). The main content is data processing. As for Java, I have forgotten about it. what did you say about the previous job? It's not good or not, but I lost my

Java RMI and. Net remoting

Java RMI and. Net remoting Java and. NET provides remote processing functions, but not completely the same. java remote processing is implemented through a "shared interface. net can be implemented through a "shared command set. The two methods are

How does Java read data from an Excel file?

How to read data from an Excel file in Java Package cn.com. spaceware. lixun; Import java. Io. fileinputstream; Import java. Io. filenotfoundexception; Import java. Io. ioexception; Import java. util. arraylist; Import java. util. iterator;

Use encryption technology to protect Java source code

Use encryption technology to protect Java source code JavaThe source code of the program is easily peeked at by others. Anyone can analyze others' code as long as there is an anti-compiler. This article discusses how to avoid modifying the original

13 Reasons for Java programmers to learn flex and blazeds

This article outlines the 13 Reasons Why Java programmers shocould learn flex and blazeds. it talks about why flex with blazeds is one of the best choices for developing rich Internet applications (RIAs)-from highly interactive websites to

Java serial port debugging code is confusing.

  // There are three classes in total: commf. Java sendcomm. Java readcomm. Java // The total form. Commf. Java Package youknow; Import java. AWT .*;Import java. AWT. event .*; Import javax. Comm. serialportevent;Import javax. Comm.

Java EE application development basics: A letter to the course representative

The following is a letter I wrote to the class representatives.   Haha, I learned about Java through Zhang Cong and CaO Wenjie two days ago.The idea of the EE application development basics course is very responsible for the two course

Java interface and abstract class

In an object-oriented system, various functions of the system are completed by collaboration of many different objects. In this case, it is not that important for system designers to implement their own internal objects. The collaboration

Tomcat startup: Java. Lang. illegalargumentexception: Can't convert argument: NULL

An error occurred when Tomcat was started today. Severe: end event threw exceptionJava. Lang. illegalargumentexception: Can't convert argument: NULLAt org. Apache. tomcat. util. introspectionutils. Convert (introspectionutils. Java: 999)At org.

Heap, stack, and constant pool in Java

Java memory allocation: 1. Register: we cannot control it in the program2. STACK: stores basic data and object references, but the object itself is not stored in the stack, but stored in the heap.3. Heap: store data generated with new4. static

[Negative tive Java distilled] item 1 considers replacing the constructor with the static factory Method

About objective Java Distilled: I have read this book tive Java for nearly two times on and off, and the content in it is very deep and helpful for improving the quality of engineering code. I'm going to sort out a series slowly. The reason why I

Java variable naming rules

Java variable naming convention]   Java is a case-sensitive language that distinguishes letters. The following describes the naming rules for packages, classes, and variables in Java.(1)Package)Name: the package name isA lowercase wordFor

Total Pages: 6206 1 .... 399 400 401 402 403 .... 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.