Live Help (Start Chat)
View Count: 0
Duration: 67 mins
Accessed date:
Not Yet Viewed
View Count: 0
Duration: 62 mins
Accessed date:
Not Yet Viewed
View Count: 0
Duration: 71 mins
Accessed date:
Not Yet Viewed
View Count: 0
Duration: 52 mins
Accessed date:
Not Yet Viewed
View Count: 0
Duration: 74 mins
Accessed date:
Not Yet Viewed
Post your comment / feedback here
 
 

Be the first one to comment about this video

Question No: 1 of 25
1.program om same method call using different operation?

class one 
{
int one(int x){
return x*x;
}
}
class two extends  one 
{
int one(int x)
{
return x*x*x*;
}
}
class
{
two ref=new one();
ref.one(5);
} 
Options:
  1. Incompatible types
  2. 25
  3. 125
  4. 25 125
View Answer/Explanation:
a
Explanation:

Question No: 2 of 25
2.Interface contains what type of variables? 
Options:
  1. public, private, default
  2. public, protected, private
  3. default, protected, static
  4. public, default, static
View Answer/Explanation:
d
Explanation:

Question No: 3 of 25
3.check weather the static value can be modified or not.

class Test
{
int a()
{
static int i=0;
i++;
return i;
}
Test t=new Test();
int j=test.a();
System.out.print(i);
} 
Options:
  1. Illegal start of expression
  2. 0
  3. 1
  4. 2
View Answer/Explanation:
a
Explanation:

Question No: 4 of 25
4.write a program for assigning Integer value to boolean.

int x=10;
double y=10.5;
boolean b=(x=y);
System.out.print(b); 
Options:
  1. true
  2. false
  3. compilation error
  4. exception
View Answer/Explanation:
c
Explanation:

Question No: 5 of 25
5. Write a program to pass the values as arguments and accepting it.

class A
{
final int res(int a, int b)
{
 System.out.println(a+""+b);
return 0;
}
class B extends A
{
int res(int a, int b)
{
System.out.println(a+""+b);
return 1;
}
class Test
{
public static void main(String args[])
{
B b=new B();
}
System.out.print(b.res(1,2));
} 
Options:
  1. compile error
  2. 1 2
  3. 1
  4. 2
View Answer/Explanation:
a
Explanation:

Question No: 6 of 25
class Exc
{
public static void main(String x[])
{
try
{
System.out.println(“hello”);
}
catch(Exception e){
System.out.println(“try”);
}
finally
{
System.out.print(“Deccansoft”);
} 
Options:
  1. hello Deccansoft
  2. hello try Deccansoft
  3. try Deccansoft
  4. hello try
View Answer/Explanation:
a
Explanation:

Question No: 7 of 25
7. A program on displaying sum of two numbers

class x
{
public static void main(String ar[]){
int a=3,b=4;
System.out.print(a+b);
System.out.print(“ ”+a+b+” “);
}
} 
Options:
  1. 7 7
  2. 34 7
  3. 7 34
  4. 34 34
View Answer/Explanation:
c
Explanation:

Question No: 8 of 25
8.program for printing loop statement

class Test
{
public static void main(String ar[]){
for(int i=0;i<=5;i++)
{
System.out.print(i);
}
System.out. print(i);
} 
Options:
  1. compiler error
  2. 0 1 2 3 4 5 6
  3. 0 1 2 3 4 5 5
  4. 1 2 3 4 5 6 6
View Answer/Explanation:
a
Explanation:

Question No: 9 of 25
9.write a program to accept the data from out side of class.

class Test{
int x=5;
Test(int x){
this.x=x;
}
static void access()
{
System.out.print(x);
}
}
class x
{
Test obj=new Test(55);
Test.access();} 
Options:
  1. 55
  2. 5
  3. compile error
  4. run-time error
View Answer/Explanation:
c
Explanation:

Question No: 10 of 25
10.write a program to access the data from outside of the another class

class x
{
private int x;
void modify(int a)
{
x=a;
x++;
}
void access()
{
System.out.print(x);
System.out.print(a);
System.out.print(x);
}
}
class samp
{
x xy =new x();
s.modify(10);
s.access();
}
} 
Options:
  1. 10 10
  2. compile-error
  3. 11 11
  4. 10 11
View Answer/Explanation:
b
Explanation:

  1