Which one of these classes is syncronized:
StringBuilder or StringBuffer?
The main difference between StringBuffer and StringBuilder is between four parameters, synchronization,
speed, thread-safety, and availability. StringBuffer is synchronized and that's why thread-safe,
but StringBuilder is not synchronized, not thread-safe and that's why fast.
Regarding availability, StringBuffer is available from Java 1.0 while StringBuilder was added in Java 5.
Read more: http://www.java67.com/2014/05/difference-between-stringbuilder-and-StringBuffer-java.html#ixzz4XHCSj0S1
Choose the primitive data type of java
There are many different development enviroments for Java
applications. Which one is not?
Which one of the following interfaces has method ?
int result1 = 1000 % 60;
int result2 = 100 % 60;
System.out.println(result1+" / " +result2);