Abhilash Nair

+ Follow
since Mar 29, 2006
Merit badge: grant badges
For More
Cows and Likes
Total received
In last 30 days
Total given
Total received
Received in last 30 days
Total given
Given in last 30 days
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Abhilash Nair

We are developing a web application using GWT in the UI layer. Some of the UIs needs to be dynamically generated/rendered. The data for rendering the UI comes from an external system. For example, for a specific item A, the external application provides data saying the page requires 2 text boxes with labels and one submit button. For another item B, the application provides the data saying for item B, we need to have 5 text boxes one submit button and one cancel button.
So how can we address this scenarion if we are using GWT in UI layer.
As far as i understand, the development process for GWT is:
Define the Java class with the required UI needs.
Compile the class into HMTL+Java Scripts.
Deploy the same.

If we look the above flow, dynamic rendering/dynamic UI generation looks to be impossible if we use GWT framework. Is this true? If not, have you come across any such scenarios and any solutions
thanks in advance.
13 years ago
Yeah as Gaurav said, my question was not about interface and its implementation.
The point is that i could able to access methods defined in a class with derault access from a different package.
So i request forum members who unserstood the actual question to throw some light on this.
As i was going through the access specifiers, got confused about the default access for classes. As per my understanding, if i have a class with default access, then there is no way to access the methods of this class from another class in another package. But when i tries the folloing code, i got confused since i could able to access the methods defined in a default class from another class in another package.

I have an interface defined in package p1.
package p1;
public interface Interface1{
int add(int i, int j);

And i have an impl class Cert1 and a public class Cert2 in the same package.

package p1;

class Cert1 implements Interface1{
protected void meth1(){
public int add(int a, int b){
return a+b;

public class Cert2{
public Cert1 c = new Cert1();

Then i have another class in another package p2 where i am calling the method defined in Cert 1.

package p2;
import p1.*;
class Cert3{
public static void main(String a[]){
Interface1 i =new Cert2().c;

This way i could able to execute a method defined in a class with default access from another class in another package.Can somebody explain this?