package com.mythread;public class ThreadMain extends Thread {private int id = 0;private Common common;public ThreadMain(String name, int no, Common obj){super(name);common = obj;id = no;}public void run(){System.out.println("Running Thread" +
<!-- Normally, users must authenticate themselves to each web app individually. Uncomment the following entry if you would like a user to be authenticated the first time they encounter a resource
public class TestException1 { public static void main(String[] args) { System.out.println(except()); } public static int except() { int s = 0; try { System.out.println(2 / 0); } catch (ArithmeticException e1) { e1.printStackTrace();
ORA-28000: the account is locked的解決辦法ora28000 the account islockedORA-28000: the account is locked-的解決辦法第二種ALTER USER username ACCOUNT UNLOCK;第三種在plsql developer中要是以scott/tiger登入時提示ora-28000 the account is
truncate 和delete的區別 一、delete產生rollback,如果刪除大資料量的錶速度會很慢,同時會佔用很多的rollback segments .truncate 是DDL操作,不產生rollback,速度快一些. Truncate table does not generate rollback information and redo records so it is much faster than delete.In default, it deallocates
Nested Class 一般是C++的說法,Inner Class 一般是JAVA的說法。Nested class分為靜態Static nested class 的和非靜態 inner class,靜態Static nested class是不可以直接調用它的外部類enclosing class的,但是可以通過外部類的引用來調用,就像你在一個類中寫了main方法一樣。非靜態類inner class 可以自由的引用外部類的屬性和方法,但是它與一個執行個體綁定在了以其,不可以定義靜態屬性、方法 。