Posts

Showing posts from January, 2018

ObjectAid UML Explorer for Eclipse

Image
The ObjectAid UML Explorer for Eclipse The ObjectAid UML Explorer is an agile and lightweight code visualization tool for the Eclipse IDE. It shows your Java source code and libraries in live UML class and sequence diagrams that automatically update as your code changes. Why Another UML Tool? The ObjectAid UML Explorer is different from other UML tools. It uses the UML notation to show a graphical representation of existing code that is as accurate and up-to-date as your text editor, while being very easy to use. Several unique features make this possible: You simply drag your Java classes onto a diagram from other Eclipse views; no need to start a lengthy reverse engineering job. Your source code and libraries are the model that is displayed, they are not reverse engineered into a different format. If you update your code in Eclipse, your diagram is updated as well; there is no need to reverse engineer source code. Refactoring updates your diagram as well as you...

String in java

Image
In java, strings are objects that represents a sequence of characters.  java.lang.String class is used to create string object.  String objects are immutable.  java.lang.String class is final.  java.lang.String class is Serializable. Create String object In java, there are 2 ways to create String object: By using string literal By using new keyword 1- String literal In Java String literals are created by using double quotes. String str="india"; When we create a string literal, the JVM checks the string in constant pool first. If the string already available in the pool, a reference of the pooled instance is returned. If string doesn't available in the pool then a new string instance will created and stored in the constant pool. String str1="india";  String str2="india";  // No new instance created In this case only one object will be created. Firstly JVM will not find any string o...

Spring Bean Scopes

Image
singleton  prototype  request  session  global-session