java-faq.livejournal.com
What is the difference between a while statement and a do statement?: java_faq
http://java-faq.livejournal.com/1516.html
What is the difference between a while statement and a do statement? A while statement (pre test) checks at the beginning of a loop to see whether the next loop iteration should occur. A do while statement (post test) checks at the end of a loop to see whether the next iteration of a loop should occur. The do statement will always execute the loop body at least once. Post a new comment. Anonymous comments are disabled in this journal. We will log you in after post. We will log you in after post.
java-faq.livejournal.com
Polymorphism: java_faq
http://java-faq.livejournal.com/1697.html
Polymorphism in simple terms means one name many forms. Polymorphism enables one entity to be used as a general category for different types of actions. The specific action is determined by the exact nature of the situation. Polymorphism exists in three distinct forms in Java:. Method overriding through inheritance. Method overriding through the Java interface. Post a new comment. Anonymous comments are disabled in this journal. We will log you in after post. We will log you in after post.
java-faq.livejournal.com
What is synchronized keyword?: java_faq
http://java-faq.livejournal.com/3086.html
What is synchronized keyword? Synchronization is the act of serializing access to critical sections of code. We will use this keyword when we expect multiple threads to access/modify the same data. To understand synchronization we need to look into thread execution manner. If you feel a method is very critical for business that needs to be executed by only one thread at a time (to prevent data loss or corruption), then we need to use synchronized keyword. Post a new comment. We will log you in after post.
java-faq.livejournal.com
difference between the boolean & operator and the && operator?: java_faq
http://java-faq.livejournal.com/2487.html
Difference between the boolean and operator and the & operator? What is the difference between the boolean and operator and the & operator? Post a new comment. Anonymous comments are disabled in this journal. We will log you in after post. We will log you in after post. We will log you in after post. We will log you in after post. We will log you in after post. Your IP address will be recorded. Post a new comment. Post a new comment. What is a static method? How can I tell what state a thread is in?
java-faq.livejournal.com
difference between preemptive scheduling and time slicing: java_faq
http://java-faq.livejournal.com/4310.html
Difference between preemptive scheduling and time slicing. Under preemptive scheduling, the highest priority task executes until it enters the waiting or dead states or a higher priority task comes into existence. Under time slicing, a task executes for a predefined slice of time and then reenters the pool of ready tasks. The scheduler then determines which task should execute next, based on priority and other factors. Post a new comment. Anonymous comments are disabled in this journal. Post a new comment.
java-faq.livejournal.com
difference between the Boolean & operator and the && operator: java_faq
http://java-faq.livejournal.com/4412.html
Difference between the Boolean and operator and the & operator. If an expression involving the Boolean and operator is evaluated, both operands are evaluated. Then the and operator is applied to the operand. Post a new comment. Anonymous comments are disabled in this journal. We will log you in after post. We will log you in after post. We will log you in after post. We will log you in after post. We will log you in after post. Your IP address will be recorded. Post a new comment. Post a new comment.
java-faq.livejournal.com
What methods java providing for Thread communications ?: java_faq
http://java-faq.livejournal.com/2839.html
What methods java providing for Thread communications? Java provides three methods that threads can use to communicate with each other: wait, notify, and notifyAll. These methods are defined for all Objects (not just Threads). Post a new comment. Anonymous comments are disabled in this journal. We will log you in after post. We will log you in after post. We will log you in after post. We will log you in after post. We will log you in after post. Your IP address will be recorded. Post a new comment.
java-faq.livejournal.com
What is a static method?: java_faq
http://java-faq.livejournal.com/2070.html
What is a static method? Non-static variables take on unique values with each object instance. Post a new comment. Anonymous comments are disabled in this journal. We will log you in after post. We will log you in after post. We will log you in after post. We will log you in after post. We will log you in after post. Your IP address will be recorded. Post a new comment. Post a new comment. What are different types of access modifiers? Difference between the boolean and operator and the & operator?
java-faq.livejournal.com
How are Observer and Observable used?: java_faq
http://java-faq.livejournal.com/3734.html
How are Observer and Observable used? Objects that subclass the Observable class maintain a list of observers. When an Observable object is updated it invokes the update() method of each of its observers to notify the observers that it has changed state. The Observer interface is implemented by objects that observe Observable objects. Post a new comment. Anonymous comments are disabled in this journal. We will log you in after post. We will log you in after post. We will log you in after post.
java-faq.livejournal.com
What are different types of access modifiers?: java_faq
http://java-faq.livejournal.com/1896.html
What are different types of access modifiers? Access specifiers are keywords that determine the type of access to the member of a class. These keywords are for allowing. Privileges to parts of a program such as functions and variables. These are:. Public : accessible to all classes. Protected : accessible to the classes within the same package and any subclasses. Private : accessible only to the class to which they belong. Post a new comment. Anonymous comments are disabled in this journal.