GeekInterview.com
Answered Questions

Package access modifier

Asked By: it.hce | Asked On: Feb 7th, 2010

What do you mean by package access modifier?

Answered by: shatish15 on: Sep 3rd, 2010

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.

Answered by: shamli85 on: Apr 2nd, 2010

We can use protected and private modifier with a Class only if it is an inner Class.

JSP fragment

Asked By: RamRihal | Asked On: Jul 29th, 2008

What is JSP fragment?

Answered by: shamli85 on: Apr 2nd, 2010

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...

Answered by: atmarammuduli on: Jul 30th, 2008

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?

Asked By: ykbharat | Asked On: Mar 13th, 2007

Answered by: shamli85 on: Apr 2nd, 2010

1. Constructor always has its Class name.

2. No return types
3. can't be final or static

Answered by: Ashwani Kabra on: Mar 21st, 2007

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

Asked By: ramaprasad | Asked On: Nov 2nd, 2005

Answered by: prabhjot kaur on: May 12th, 2012

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.

Answered by: shrimanta on: Mar 14th, 2012

encapsulation is the concept of the datamember. Data Hiding is the Access Specifier.

Interview Question

 Ask Interview Question?

 

Career Counselling

 Have Career Question?

 Ask Chandra

 Ask Only Career questions.

Follow us: