Ask Question

Name:
Title:
Your Question:

Answer Question

Name:
Your Answer:
User Submitted Source Code!


Description:
  sample.java
Language: JAVA
Code:
public class A{
Private int value = 0;
Public int method2(int k)
{
Value+=k;
Return true;
}
}
public class B extends A{
Public void method1(int index)
{
b=index < 10|method2(10);
b=index < 10||method2(10);
}
Public class C
{
public static void main(String[] args)
{
B b= new B();
b.method1(0);
System.out.println(value);
}
}     
Comments: