Interview Question in SQL Server Performance Tuning


 

Interview Question :: What is the difference in these Java codes:


String sql = new String("SELECT NAME FROM OTHER_SERVICE_MASTER WHERE ACTIVE='Y' AND SERVICE_TYPE='Music'");
StringBuffer sqlb = new StringBuffer("SELECT NAME FROM OTHER_SERVICE_MASTER WHERE ACTIVE='Y' AND SERVICE_TYPE='Music'");
String sql = ""SELECT NAME FROM OTHER_SERVICE_MASTER WHERE ACTIVE='Y' AND SERVICE_TYPE='Music'""
Performance - wise (execution time in milliseconds)
and Resource - wise (minimum memory consumed)
Answers to "What is the difference in these Java codes:"
RE: What is the difference in these Java codes:?

String contains only string characters and String Buffer is the buffer stroage
 
Vote for this answer ::  
Update Alert Setting