Java programming details

1. How does JSP get the page url:   You can use the request. getrequesturl (); object specified in the page to obtain this URL.   2. Can I set parent to null when creating a jdialog object?   Compiled, but I don't know how it works.   3.

Java keytool usage

  In Java, keytool.exe (located in the JDK \ bin directory) can be used to create a digital certificate. All digital certificates are saved to the certificate library in the form of a one (alias difference, A certificate in the certificate library

Java _ Timestamp and date _ mutual conversion functions

1. convert a date to a timestampPublic long gettimestamp () throws parseexception { date date1 = new simpledateformat ("yyyy/mm/dd hh: mm: SS") . parse ("2009/12/11 00:00:00"); date date2 = new simpledateformat ("yyyy/mm/dd hh: mm: SS") . parse ("1

Java performance (4) vector, arraylist, sorted list

I remember the difference between arraylist and vector I was asked during each interview. Although I knew what I was trying to answer each time, I always felt that I was not very familiar with it. So I would like to summarize the information. JDK

In Java, = compares the value stored in the variable!

@ Char, Int, Boolean, double, long, byte, float, and shortIn the basic type (storing the value instead of the memory address value), = is used to compare the value. Int A = 1;Int B = 1;If (A = B ){System. Out. println ("value equal! ");}Among other

Java to obtain console input

You can use either bufferedreader or callback to encapsulate system. In, In addition, you can exit by obtaining a value of the string Content Equals (such as exit ). First Inputstreamreader ISR = new inputstreamreader (system. in);

Java and flex Study Notes (15) -- communication between applications and modules in flex

When creating files in Adobe flashbuilder 4.5, you can create application, module, and component files. I did not understand the three differences when I first started learning Flex. As I learned deeply, I now know the differences and usage of these

Java clears HTML tags

Import Java. util. regEx. matcher; import Java. util. regEx. pattern; public class htmlspirit {public static string delhtmltag (string htmlstr) {string regex_script = "] *?> [\ S] *? "; // define the regular expression string regex_style =" ] *?> [\

Java thread getting started

Threads are embedded in Java and are not easy to understand. There are books dedicated to Java threads for your reference. This shows the importance of Java threads. This article will introduce the basic knowledge of threads in detail. Sometimes you

Java basic data types and streams

Article Title: Operating binary files using Java Author: mingjava Last Updated: 16:00:49 17 "href =" http://www.j2medev.com/Article_Show.asp? ArticleID = 80 "target =" _ blank "> use Java to operate binary files and text files Author: mingjava Last

Use Java to operate binary files

Title: Introduction to Io systems starting from File Author: mingjava Last Updated: 0:14:34 5 "href =" http://www.j2medev.com/Article_Show.asp? ArticleID = 79 "target =" _ blank "> the file class is described in detail in the introduction to the IO

Java continue and break

The break jumps out of the current loop and continues the current loop. 1 For (INT I = 1; I {If (I = 5) break;System. Out. println ("I =" + I );}   While (I {I ++;If (I = 5) break;System. Out. println ("I =" + I );}   Do {I ++;If (I = 5)

Core Java instance-interface Abstraction

  Interface Usage:   1. Use the interface with Polymorphism: It is divided into the status at compile time and runtime. 2. Pay attention to the consistency of objects. 3. Forced conversion.     Package com; Public interface animal { }  

Java insertion sorting

Insert sorting is a good choice for sorting the sorted data by insert: Replacing arrays with vectors/**//* * Insert sorting */ Private Static void insertionsort () ...{ For (INT I = 1; I ...{ String itemtoinsert = vectorwordslist. Get (I). tostring (

Java knowledge Summary (2) -- container

1. Container: A series of class instances provided by Java APIs, used to store objects in programs. (Objects are stored, not basic data types: Data on stacks may be cleared at any time) 2. The collection interface defines the method for storing a

Java basics-reference type

I have reviewed the Eight Native Data Types of Java. In fact, we will use an important reference type during development. The reference type is used on objects. An object can be pointed to by multiple references. At the same time, each reference

30 classic Q & A sessions with basic java knowledge

1. Object-oriented features Abstract: Abstraction is a factor that is irrelevant to the current target in a topic, while fully considering the relevant content. Abstract cannot solve all problems in the target. You can only select one part and

Java extracts the Data Object List from the Database Using Reflection similar to hibernate.

I have been writing the framework for the past two days. I think this is very practical and I will share it with you! The main function is to read the object field based on the returned result set, call the set method, and put the corresponding

Java Array Implementation iteration method iterator, imitating arraylist

I searched the internet and found no articles about array iteration. So I wrote it myself. It is mainly used to simulate an arraylist implementation! The Code is as follows: First, create an interface: package com.list;public interface List extends

Settings and functions of java_home path classpath in Java environment variables

Today, I set the Java environment variable again. I suddenly found that every setting was completed step by step. I didn't know why I needed to set it. So I searched the internet and found the article, I think it's good. I will leave it here.Only

Total Pages: 6206 1 .... 5872 5873 5874 5875 5876 .... 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.