Interview Summary (i)--java Basic related knowledgeRecently in the interview, so summarize the interview easy to ask the knowledge points, used for backup viewing.If you need to reprint, please indicate the source.1. Object-oriented features; 1.
The 1.java code determines whether the string contains letters:Idea: Use regular expressions to verifyThe 1.1 sample code is as follows:/** * This method primarily uses regular expressions to determine whether a string contains a letter *
Mechanism and implementation of method object1, Method Object Overview1) The Java.lang.reflect.Method class is the class used to represent the method object in the class, in the interface.2) You can manipulate all methods, such as private and public,
Today you want to do some code optimization for a Java project that has more than 100 rows. You need to count how the Java classes in your project have more than 100 lines of code. Did not find a similar statistical tool on the Internet, wrote a
Diagram of the one or three-person relationship:Second, demo 1, Printstacktrace () Demo: public class Test{public int div (int a, int b){Try{return a/b;} catch (Exception e){E.printstacktrace ();}return 0;}public static void Main (string[]
Java Side questions and answersJava-related Basics1. What are the aspects of object-oriented features1. Abstraction:Abstraction is about ignoring aspects of a topic that are not related to the current goal, so that you can more fully focus on the
This article transferred from: http://www.infosys.tuwien.ac.at/teaching/courses/WebEngineering/References/java/docs/api/java/awt/image/ Pixelgrabber.htmlThe PixelGrabber class implementation can attach a imageconsumer that obtains a subset of the
1. What is an exceptionSimply put, this is due to a problem with the program running, but you can use the Try ... and catch capture processing, after which the program continues to run.In Java, there are two types of exceptions (Exception) and
What is multithreading? These words will not be said, look directly at examples.first, the use of multi-threading1. Inherit the thread classPackage Com.ztz.mythread;public class MyThread extends thread{@Overridepublic void Run () {System.out.println
"009-palindrome number (palindrome)""leetcode-Interview algorithm classic-java Implementation" "All topics Directory Index"Original QuestionDetermine whether an integer is a palindrome. Do this without extra space.Main TopicDetermine if a number is
Properties class is very common, almost every project, from J2SE to the Java EE every project has not left him, even if it is jsp+servlet+jdbc things, JDBC configuration information is also write properties, internationalization is also properties,
1. Calculate the number of days/* Given one month day, the calculation is the first day of the year (e.g. input: 2 15 Result: 46th day) */public class Demo1 {public static void main (string[] args) {int year = 2012;int Mont H = 12;int Day = 31;int
1, dir: List the files in the current directory and folder directory directoryMD: Create directory RD: Delete directory CD: Enter the specified directory CD. : Back to the top level directory cd/: Rollback to root del: Delete file exit: Exit
Java modifies the Windows registry to enable auto-Start applications ., Javawindows
To modify the Windows registry using Java, use the cmd command.
The example and running result are as follows:
Package day01; import java. io. IOException;/* 1, reg
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