rupika deval

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

Recent posts by rupika deval

What are request headers and why are they necessary
15 years ago
[code]
package p1;

public class AccessModifiers{
int n_pack =1;
private int n_pri = 2;
protected int n_pro = 3;
public int n_pub = 4;

public AccessModifiers(){
System.out.println("Base Constructor");
System.out.println(" n_package = "+n_pack);
System.out.println("n_private = "+n_pri);
System.out.println("n_protected = "+n_pro);
System.out.println("n_public = "+n_pub);
}
public static void main(String[] args){
AccessModifiers am = new AccessModifiers();
}

}


package p2;

import p1.AccessModifiers;

class AccessModifiers03 extends AccessModifiers {
public static void main(String args[]){
AccessModifiers am = new AccessModifiers();
//System.out.println(" n_package = "+n_pack);
//System.out.println("n_private = "+n_pri);
System.out.println("n_protected = "+n_pro);
System.out.println("n_public = "+am.n_pub);

}

}
[\code]
i am getting error while printing n_pro even if it is declared as protected, please can you help me...
16 years ago
csn snybody help me with what are thread groups and why are they used
Can anybody please tell me what exactly do the chained exceptions used for?
16 years ago
What is an yield() method? and how is it different from sleep() and wait()
why thread class is provided when we can create a thread using runnable interface.