20161201 For problem analysis, please click below today's questions “【Java A daily topic 】20161202” see

package Dec2016;
public class Ques1202 {
public static void main(String[] args) {
int num = 127; // If it is 128 Well 
Integer n1 = new Integer(num);
Integer n2 = new Integer(num);
System.out.println("new The object of production :"+(n1==n2)); n1 = Integer.valueOf(num);
n2 = Integer.valueOf(num);
System.out.println("valueOf The object of production :"+(n1==n2));
}
}

Today's problems : 
May I ask when num by 127 and 128 when , What are the output results of the main program ?( Click below “【Java A daily topic 】20161202” see 20161201 Problem analysis )

The topic was originally issued in the official account. 、 Simple books :【Java A daily topic 】20161202,【Java A daily topic 】20161202

【Java A daily topic 】20161202 More articles about

  1. 【Java A daily topic 】201612015

    package Dec2016; import java.util.HashSet; public class Ques1205 { public static void main(String[] ...

  2. 【Java A daily topic 】20161205

    package Dec2016; import java.util.HashSet; public class Ques1205 { public static void main(String[] ...

  3. 【Java A daily topic 】20170106

    20170105 For problem analysis, please click below today's questions "[Java A daily topic ]20170106" see ( The problem is solved in the official account , official account ID:weknow619) package Jan2017; ...

  4. 【Java A daily topic 】20170105

    20170104 For problem analysis, please click below today's questions "[Java A daily topic ]20170105" see ( The problem is solved in the official account , official account ID:weknow619) package Jan2017; ...

  5. 【Java A daily topic 】20170104

    20170103 For problem analysis, please click below today's questions "[Java A daily topic ]20170104" see ( The problem is solved in the official account , official account ID:weknow619) package Jan2017; ...

  6. 【Java A daily topic 】20170103

    20161230 For problem analysis, please click below today's questions "[Java A daily topic ]20170103" see ( The problem is solved in the official account , official account ID:weknow619) package Jan2017; ...

  7. 【Java A daily topic 】20161230

    // 20161229 For problem analysis, please click below today's questions "[Java A daily topic ]20161230" see ( The problem is solved in the official account , official account ID:weknow619)package Dec2016 ...

  8. 【Java A daily topic 】20161229

    package Dec2016; import java.util.ArrayList; import java.util.List; public class Ques1229 { public s ...

  9. 【Java A daily topic 】20161228

    package Dec2016; import java.util.ArrayList; import java.util.List; public class Ques1228 { public s ...

Random recommendation

  1. Jenkins System settings for

    1. Sign in Jenkins Enter the following screen : 2. Click on System management 3. Click on System settings ( The system settings in the figure below are already set ) 4. Here are the main settings Jenkins URL ( Here I'm testing, so use the default ) And Mail ...

  2. be based on CCS3.3 Platform building DSP/BIOS System

    Because of my job change , from ccs3.1 Under the platform, it turns into ccs3.3 platform . Let's talk about the difference in my feelings first ,ccs3.1 Under the CSL The library is integrated into DSP/BIOS Inside , and 3.3 Of CSL Library in DSP/BIOS It's not reflected in the following . 1. Two words No ...

  3. Find the file in the specified directory  .xml

    pre{ line-height:1; color:#9f1d66; background-color:#cfe4e4; font-size:16px;}.sysFunc{color:#5d57ff; ...

  4. Android MVC Frame mode

    MCV  model view controller   Model - View - Control writing M layer : Suitable for some business logic processing , For example, database access operation , Network operating , Complex algorithms , Time consuming tasks, etc model Layer handles . V layer : In the application layer ...

  5. Why do foreign programmers like apple Mac The computer ?( turn )

    Mac It's very popular abroad , Especially in Design /web Development /IT In the circle of people . Ordinary users like Mac You can understand , After all Mac Beautiful design , Simple to use , No virus . So why are professionals right Mac I'm in love with you ? From personal use ...

  6. IOS Novice tutorial ( Two )- control flow

    int main(){ //2. control flow //2.1 if sentence //1. if(expression){ } //2. if(expression){ }else{ } //3. Can have 0 One or more els ...

  7. VisualGDB Makefiles

    The following are VisualGDB Official website VisualGDB Instructions for getting relevant compilation information at compile time : When you create a new project using VisualGDB, it will gen ...

  8. in the light of php Script files execute locked code , Avoid scripts running repeatedly at the same time

    <?php// in the light of php Script files execute locked code , Avoid scripts running repeatedly at the same time ,http://ken.01h.net/define('PHP_LOCK_FILE', dirname(__FILE__ ...

  9. BZOJ 2200 Roads and routes ( Advanced exercises of arithmetic competition )

    dijkstra + A topological sort This problem has a negative weight side , But it's stuck spfa, So we should look at the nature of the topic . The negative weight side must be unidirectional , And it doesn't form a ring , So let's consider connecting the positive weight edge first . then dfs Find all the connecting blocks of positive weight edges at once , Take him ...

  10. TIMESTAMP The type field is in SQL Server and MySQL The meaning and use of

    The official account is flying everywhere ,MySQL Optimize related , Inadvertently, a sentence “ Use as much as possible TIMESTAMP Instead of DATETIME”, Previous pair TIMESTAMP I'm not familiar with , Rarely used , So I checked the difference between the two . Actually , No matter ...