Browsed by
Month: August 2015

String is Immutable, what does it mean ?

String is Immutable, what does it mean ?

String is Immutable, what does it mean ? String is immutable: String objects in java is immutable. Meaning of immutable is it can not be changed or altered. In java, strings are immutable which means that string objects can not be modified or changed, instead new object will be created. Eg: public class Javadomain{ public static void main(String[] args) { String myString = "Java"; myString = "domain"; System.out.println("myString is :::"+myString); } }   Output:   myString is :::domain     Explanation:…

Read More Read More

789 total views, no views today

Abstract class vs Interface in Java

Abstract class vs Interface in Java

Abstract class vs Interface in Java 1. Abstract class: Can have public, protected. Interface: Must have only public.[by default everything in interface will be public.] Example: // No exception [private is not allowed since we need to access and implement the methods] abstract class JdAbstractClass{ protected abstract void display(); public abstract void display1(); } //Exception [Illegal modifier for the interface method display; only public, abstract, default, static and strictfp are permitted] interface JdInterface{ // protected should not be used inside…

Read More Read More

518 total views, no views today

Installing Maven in eclipse

Installing Maven in eclipse

Installing Maven in eclipse: Maven can be installed in eclipse by two ways, 1. Through eclipse marketplace [Help -> Eclipse Marketplace] Search M2E or Maven Integration for Eclipse    M2E – Maven Integration for Eclipse then install this package. 2. Install New Software [Help ->  Install New software] Enter the below URL and select all then click next and finish to install the maven in eclipse. http://download.eclipse.org/technology/m2e/releases   If you are using eclipse juno/helios/indigo you should install the maven in…

Read More Read More

731 total views, no views today

[Solved] could not create the java virtual machine

[Solved] could not create the java virtual machine

[Solved] could not create the java virtual machine   When this exception or error will occur ? If any configurations in the eclipse.ini file is wrong then this error could occur. Possible solution/Fix: [It worked for me when I had the same issue] If you have installed eclipse, then try to find the eclipse configuration file, which will be generally available in the eclipse folder [where you have eclipse.exe file]. file name: eclipse.ini [file type: configuration settings] Find the below…

Read More Read More

556 total views, no views today

[Solved] Connection will be closed due to unrecoverable error java.lang.OutOfMemoryError

[Solved] Connection will be closed due to unrecoverable error java.lang.OutOfMemoryError

[Solved] Connection will be closed due to unrecoverable error java.lang.OutOfMemoryError   Try to find the eclipse.ini file, which will be generally available in the eclipse folder. [where you have eclipse.exe file]. file name: eclipse.ini [file type: configuration settings] Find the below lines in the eclipse.ini file, -Xms40m -Xmx1024m   [or]   -Xms256m -Xmx1024m and change it to, -Xms512m -Xmx1350m Note: Take the backup of the eclipse.ini file before modifying it. sometimes this value change may cause a below error. could…

Read More Read More

868 total views, no views today

AngularJS Hello world for Dummies

AngularJS Hello world for Dummies

AngularJS Hello world for Dummies: AngularJS is an open source Model-View-Controller [MVC] Javascript framework initially created by Misko Hevery and Adam Abrons in 2009. Now google maintains this web application open source framework. AngularJS written using Javascript language. AngularJS extends HTML attributes by directives.   What is AngularJS? It is a javascript framework mainly used to create single page applications(SPA’s) by extending new HTML attributes. Attributes can be added using directives. Data binding can be done using expressions. AngularJS Basics: Directives…

Read More Read More

848 total views, no views today

Type writing script using jQuery

Type writing script using jQuery

Type writing script using jQuery: Do you like to type more faster ? then our simple jQuery based type writing script can help you. Typing faster is a very essential skill required to complete any task faster. Great computer knowledge without fast typing skill can not help you to complete a task quickly. Our simple script will help to practice type-writing at your free time. People who are maintaining any type-writing related sites/apps can make use of this sample type…

Read More Read More

706 total views, 1 views today

[solved] uioutput cannot be resolved to a type JSF

[solved] uioutput cannot be resolved to a type JSF

[solved] uioutput cannot be resolved to a type JSF: Error meaning is you did not import the UIOutput in your bean/controller. So you have to import the below UIOutput package, “import javax.faces.component.UIOutput;” to resolve the uioutput cannot be resolved to a type error/exception. If you are getting this exception in eclipse like in the below/similar line, String ajaxListValue = (String) ((UIOutput) event.getSource()).getValue(); then you need to put the cursor near UIOutput and enter the Ctrl+Space to get the auto import…

Read More Read More

618 total views, no views today

How to remove the deployed applications from RAD without starting/restarting the server ?

How to remove the deployed applications from RAD without starting/restarting the server ?

How to remove the deployed applications from RAD without starting/restarting the server ? Sometimes our websphere application server will not start/restart due to wrong configurations, permissions, already installed applications etc., But we may need to remove or uninstall the applications from the websphere, in that case we can remove it using the serverindex.xml file entries,  <deployedApplications>WebSphereWSDM.ear/deployments/WebSphereWSDM</deployedApplications> <deployedApplications>isclite.ear/deployments/isclite</deployedApplications> <deployedApplications>DefaultApplication.ear/deployments/DefaultApplication</deployedApplications> <deployedApplications>ivtApp.ear/deployments/ivtApp</deployedApplications> <deployedApplications>query.ear/deployments/query</deployedApplications> <deployedApplications>ibmasyncrsp.ear/deployments/ibmasyncrsp</deployedApplications> serverindex.xml file location: D:\Program Files\IBM\SDP\runtimes\base_v7\profiles\Guru\config\cells\JavadomainNode01Cell\nodes\mynode sample entries you can find in serverindex.xml file, delete the unwanted deployedapplications list from…

Read More Read More

700 total views, no views today