-new String() - how max size of string we can pass using String constructor. -What are the design patterns used in JSF? -Many to Many relationship in hibernate. -How to read a DB table which is very large number of records and insert into other same table? -OOPS principle -Difference between encapsulation and abstraction? -Spring can have multiple SessionFactory with different data source? -What is cloning? -Why we need serialization? -When to use interface and abstract class? -Why java.util.concurrency package even though we can implement multi threading? -ConcurrentModificationException? How to avoid it. -Different type of caching in hibernate? -What Future interface returns? -ExecutorService? -How to communicate using web service by making data securely? -Servlet life cycle. -JSP scriptlet tag? Where the contents of jsp scriptlet tag will go? -URL encoding? -How to make a class immutable?
Anonymous
The answer to new String() - how max size of string we can pass using String constructor : should be Integer.MAX_VALUE. I infer this from the fact that string.length() returns an integer and the maximum value that an integer can have is Integer.MAX_VALUE which is approx 2^31 -1. In this String constructor we are just passing a String literal. Hence a String that has maximum length of Integer.MAX_LENGTH can be passed.
Check out your Company Bowl for anonymous work chats.