Login
Register
All Activity
Questions
Unanswered
Tags
Users
Ask a Question
About Us
986
Questions
785
Answers
Interview Preparation mode
beta
Funny Facebook Status
Enter your email address
All categories
SQL Server Interview Questions and Answers
(197)
SSIS Interview Questions and Answers
(54)
SSRS Interview Questions and Answers
(9)
SSAS Interview Questions and Answers
(29)
.NET Interview Questions and Answers
(186)
Oracle Interview Questions and Answers
(122)
Java Interview Questions and Answers
(32)
UNIX Interview Questions and Answers
(47)
Networking Interview Questions and Answers
(17)
MySQL Interview Questions and Answers
(30)
HR Interview Questions and Answers
(237)
General Interview Questions and Answers
(9)
Other Interview Questions and Answers
(8)
Job Openings
(3)
Greenplum Database Interview Questions and Answers
(5)
What Java technique would you use to implement it?
Nice?
Vote!
There are two classes: A and B. The class B need to inform a class A when some important event has happened. What Java technique would you use to implement it?
asked
1 year
ago
in
Java Interview Questions and Answers
by
anonymous
java-interview-questions
ioexceptipon-interview-questions
java-technique
1 Answer
Nice?
Vote!
If these classes are threads I'd consider notify() or notifyAll(). For regular classes you can use the Observer interface.
answered
1 year
ago
by
anonymous
Related questions
Nice?
Vote!
1
answer
What comes to mind when you hear about a young generation in Java?
asked
1 year
ago
in
Java Interview Questions and Answers
by
anonymous
java-interview-questions
ioexceptipon-interview-questions
Nice?
Vote!
1
answer
How would you make a copy of an entire Java object with its state?
asked
1 year
ago
in
Java Interview Questions and Answers
by
anonymous
java-interview-questions
ioexceptipon-interview-questions
object
Nice?
Vote!
1
answer
Which of the two Java collections should you use: ArrayList or LinkedList?
asked
1 year
ago
in
Java Interview Questions and Answers
by
anonymous
java-interview-questions
ioexceptipon-interview-questions
arraylist
linkedlist
Nice?
Vote!
1
answer
What comes to mind when someone mentions a shallow copy in Java?
asked
1 year
ago
in
Java Interview Questions and Answers
by
anonymous
java-interview-questions
ioexceptipon-interview-questions
Nice?
Vote!
1
answer
What access level do you need to specify in the class declaration?
asked
1 year
ago
in
Java Interview Questions and Answers
by
anonymous
java-interview-questions
ioexceptipon-interview-questions
class
class-declaration