Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Latest commit

 

History

History
History
50 lines (28 loc) · 809 Bytes

File metadata and controls

50 lines (28 loc) · 809 Bytes
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
package com.camels.java;
import com.camels.java.util.concurrent.LongAdder;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.concurrent.CountDownLatch;
import java.util.concurrent.locks.ReentrantLock;
/**
* Created by zhanggc on 2014/10/11.
*/
public class Test {
static int inc;
public static void main(String[] args){
/* String a= "123",b=new String("123"),c=new String("123").intern();
System.out.println(a==b);
System.out.println(a==c);
System.out.println(b==c);*/
Integer e =128,f=128,g=127,k=127;
System.out.println(e==f);
System.out.println(g==k);
}
static void inc(){
inc++;
}
public synchronized void inc1(){
inc++;
}
}
Morty Proxy This is a proxified and sanitized view of the page, visit original site.