Job Roles

Q:

Which of the following statements are equal for a variable declared in the interface ?

1. int X=10
2. public int X=10
3. public static final int X=10

A) Only 1 and 2 are equal B) Only 2 and 3 are equal
C) All are unequal D) All are equal
 
Answer & Explanation Answer: D) All are equal

Explanation:

All the statements are equal because inside an interface a variable declared will be public static final by default 

Report Error

View Answer Report Error Discuss

Filed Under: Java
Job Role: IT Trainer

0 13638
Q:

Why interface method is always public?

Answer

To make this method available to every implementation class

Report Error

View answer Workspace Report Error Discuss

Subject: Java
Job Role: IT Trainer

0 2124
Q:

Which of the following method declarations are allowed inside interface?

A) public void m1() B) private void m1()
C) protected void m1() D) abstract public void m1()
 
Answer & Explanation Answer: D) abstract public void m1()

Explanation:

Inside an interface every method will be by default abstract and public

Report Error

View Answer Report Error Discuss

Filed Under: Java
Job Role: IT Trainer

0 3941
Q:

X implements Y extends Z

A) X can be class Y,Z are interfaces B) X is an interface Y,Z are classes
C) X,Y are classes Z is an interface D) Complilation error
 
Answer & Explanation Answer: D) Complilation error

Explanation:

It is a compilation error it should be X extends Y implements Z

Report Error

View Answer Report Error Discuss

Filed Under: Java
Job Role: IT Trainer

3 4840
Q:

X implements Y, Z

Arguments:

1. X should be class
2. Y, Z should be interfaces

A) Only 1 is true B) Only 2 is true
C) Both 1 and 2 are true D) None
 
Answer & Explanation Answer: C) Both 1 and 2 are true

Explanation:

Both the statements are true 

Report Error

View Answer Report Error Discuss

Filed Under: Java
Job Role: IT Trainer

0 14927
Q:

Which of the following are valied?

A) A class can extend any number of classes simulteneously B) A class can implement only one interface at a time
C) A class can extend other class or can implement interface but not both simulteneously D) None of the above
 
Answer & Explanation Answer: D) None of the above

Explanation:

A is wrong because a class can extend nly one class .B is wrong because a class can implement any number of interfaces.C is wronb because both can can be done simulteneously.So, D is correct

Report Error

View Answer Report Error Discuss

Filed Under: Java
Job Role: IT Trainer

1 3574
Q:

The first Indian to cross seven important seas by swimming ____ ?

A) Amrendra Singh B) Bula Chaudhury
C) Junko Taibei D) Yuri Gagarin
 
Answer & Explanation Answer: B) Bula Chaudhury

Explanation:

Bula Chaudhury, Indian swimmer best known for her long-distance swimming feats.

 

In 2005 she became the first woman to have swum across sea channels of five continents including the Strait of Gibraltar, the Tyrrhenian Sea, Cook Strait, Toroneos Gulf (Gulf of Kassandra) in Greece, the Catalina Channel off the California coast, and from Three Anchor Bay to Robben Island near Cape Town, South Africa.

Report Error

View Answer Report Error Discuss

Filed Under: Sports
Exam Prep: CAT , Bank Exams , AIEEE
Job Role: Bank Clerk

193 34986
Q:

Who is the guardian of fundamental Rights enumerated in Indian Constitution?

A) Supreme Court B) Parliament
C) Constitution D) President
 
Answer & Explanation Answer: A) Supreme Court

Explanation:

The Judiciary is the guardian of fundamental Rights enumerated in Indian Constitution.

In a criminal case, the judge has the power to decide whether the accused's rights have been violated.

As with most disputes, the courts decide when a right has been violated. They then have the power to act in order.

Here the Supreme Court is tyhe Highest of the Judiciary in India.

Report Error

View Answer Report Error Discuss

Filed Under: Indian Politics
Exam Prep: AIEEE , Bank Exams , CAT
Job Role: Analyst , Bank Clerk , Bank PO

245 56474