What is JSP fragment?
JSP Fragments is a new feature of JSP 2.0 that allows page authors to create custom action fragments that can be invoked. It allows a portion of JSP code to be encapsulated into a Java object that can...
Fragments Refer to Portal Technology.Where The Portal Server Takes the JSF fragments from different portlets (Sources) and integrate in a page(portal).You can refer igoogle/my.yahoo.com for see it hap...
How do you differentiate a constructor from a ordinary function?
1. Constructor always has its Class name.
There are three differences.
1. In Java constructor has its class name. that can be unique. In .NET it has "NEW" by name.
2.It does not have any return type.
3. It cannot be subclass.
What is the difference between encapsulation and datahiding.Explain with example
encapsulation is the wrapping up of data members and data functions into a single unit like classes. here we can control the visibility of data with the help of access specifiers i.e. public,private and protected.
in data hiding data is totally private we cannot access the data.
encapsulation is the concept of the datamember. Data Hiding is the Access Specifier.
I don't understand how you can say about the private and protected access modifiers for a class. When I created a program with private and protected access modifiers, the error was that these modifiers are not allowed here.
We can use protected and private modifier with a Class only if it is an inner Class.