StringByteEx


public class StringByteEx {
public static void main(String[] args) {
byte[] b = { 97, 98, 99, 100,101,102,103,104 };
String str = new String(b);
System.out.println(str);
}
}

StringByteEx

Handler mappings


1.  BeanNameUrlHandlerMapping

2.  SimpleUrlHandlerMapping

3.  ControllerClassNameHandlerMapping

4.  CommansPathMapHandlerMapping

5.  DefaultAnnotationHandlerMapping

6.  RequestMappingHandlerMapping

7. AbstractControllerUrlHandlerMapping

8. AbstractDetectingUrlHandlerMapping

9. AbstractHandlerMapping

10. AbstractHandlerMethodMapping

11. AbstractUrlHandlerMapping

12. ControllerBeanNameHandlerMapping

13. RequestMappingInfoHandlerMapping

 

What are the default values of primitive data types?


The default values of primitive data types are
boolean data type is false.
byte, short, int and long is 0.
float and double is 0.0.
char is ‘u000’.

 

Why the main method is declared static?


main method is the entry point for a Java application and main method is called by the JVM even before the instantiation of the class hence it is declared as static. static methods can be called even before the creation of objects.