khan ali

Greenhorn
+ Follow
since Nov 22, 2001
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
In last 30 days
0
Forums and Threads

Recent posts by khan ali

From: asif ali <[email protected]>
date :11 /01/2002
Subject: To know termenology
To: [email protected] ,
dear sir
network programming the following termenology is used.
would you like to explain the termenology.
1 .port.
2. socket.
3. IP Adress.
4."abstraction".

thanks .
23 years ago
FROM: asif ali<[email protected])
DATE:11/10/2001
SUBJECT:non-static variable in static method via object refrence
sir
would you like to explain phenomena .
why non-static variable does not invoked in static method via
object refrence.
i found the

class StaticTest{
int a=10;
int b=3;
public static void main(String [] args){
StaticTest st = new StaticTest();
System.out.println(st.a); //doing well
System.out.println(st.b); //doing well
me();
}

public static void me(){
System.out.println(st.a); //error
System.out.println(st.b); //error
}
}
23 years ago
date:20/11/2001
from asif ali<[email protected]>
subject :uncleared panel topic
sir
please help me undestand awt.
i would like to put panel object in Frame object.
how can i create it in Awt?

import java.awt.*;
class DemoPanel extends Frame{
DemoPanel(){
super("This is second bid");
Panel p = new Panel();// erroe why?
add(p); //error
p.setBounds(100,100,50,50);
p.setVisible(true);
}
public static void main(String arg []){
DemoPanel dd = new DemoPanel();
}
}
asif ali
<[email protected]>
Q2. the following statement is hazy .please explain it.
statement1.
"PANEL: Panel is genric container for holding component"
statement2.
"Panel is concrete subclass of container."
thanks for givig time.
23 years ago