krish bajaj

Ranch Hand
+ Follow
since Jun 19, 2006
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 krish bajaj

hello there

yes shaiber pramila is exactly write
hello ashish

ok question for u: is object a abstract class
class Checklist
{
public static void main(String args[])
{
outer:
for(int i=0;i<3;i++)
{
for(int j=0;j<2;j++)
{
if(i==j)
{
continue outer;
}
System.out.println(i +" "+j);
}
}
}
}

output:1 0
2 0
2 1
explian it

thanks
hello there

Label Nmaes exist in their own name space,so that they do not conflict with
names of packages,classes,interfaces,methods,fields and local variables

Thanks for reply
Krish bajaj
u take a rigt decision
hello ashih

why you think that your program will have to give compile time error
hello lavanya
ur program will give an output just try and hey vladimir program must give an exception ArrayIndexoutOfBound
ur program is all right it shows output but leave first element
output:bcdef

krish bajaj
hello murali
listen it is the rule of overriding when u override a method u can not
use those specifiers due to which weeker access done
i mean if u will use private in superclass and then override the method
with public then it will not give an error
because access is stronger u can understant in the way of upcasting and downcasting

thanks
Krish
thanks Keith
now i understand
hello igor

no the answer should not change

krish bajaj
hello there
please send the link for exception i mean those who are related with constructor like these problems
public class Test9 extends A
{
Test9() throws Exception()
{
}
public static void main(String args[]) throws Exception{
Test9 t = new Test9();
}
}
class A{
A() throws Exception{
System.out.println("A Class");
}
}

send soon
thanks
Krish Bajaj
thanks vidya

that was really helpful
thanks once again

Krish bajaj
hello

i am Krish Bajaj . and i suggest u to give scjp 1.4 first after move further for scjp 1.5
by scjp 1.4 you understand the basic concepts closely
i am going to write my exam on 28 june for scjp 1.4
have a nice time
Thanks
Krish
hey vidya
please if u have any tutorial about this then please send
and if u can teach me then please help
class A{
A() {
System.out.println("A Class");
}
}
public class Test10 extends A{
Test10(){
System.out.println("Test10 Class");
}
public static void main(String args[])
{
Test10 t = new Test10();
}
}

output: A Class
Test10 Class
how is this output comes explain it