Thursday 17 November 2011

Customized Status-Bar

Normally, when you hover your cursor over a link, the status bar tells you a link's URL destination.
However, this thing can be changed according to our need. In other words, the message that appears in the status bar at the bottom of the page can be customized. This can be done by the following HTML code:

<a href="http://qsrealm.blogspot.com" onMouseOver="window.status='This message appears on the status bar!'; return true" onMouseOut="window.status=''">link</a>

Wednesday 9 November 2011

Dual Core Processor




A dual core processor is a CPU with two separate cores on the same die, each with its own cache. It's the equivalent of getting two microprocessors in one.

In a dual core processor, each core handles incoming data strings simultaneously to improve efficiency. We know two hands are better than one. Now when one is executing the other can be accessing the system bus or executing its own code.
Example: Intel Core Duo

Why Dual Core?
A dual-core processor has two cores on the same die.

This means that signals between different CPUs travel shorter distances, and therefore those signals degrade less. These higher-quality signals allow more data to be sent in a given time period, since individual signals can be shorter and do not need to be repeated as often.
A dual-core processor uses slightly less power than two coupled single-core processors, principally because of the decreased power required to drive signals external to the chip


Friday 4 November 2011

'this' keyword

'this' keyword holds the reference of object of the current class.
So, 'this' can be used to do all the work that an object can do.
Similarly, this( ) can be used to call the constructor of the current class.
Example:
class ThisDemo {
int i ;
ThisDemo( ) { }
void callingFunction( int i) {
this( );                                    // calls the constructor
this.i = i;                                // the value of argument ' i ' is passed to the variable ' i ' of class
}
}

Tuesday 1 November 2011

Viewers' Question

What are the classes in java.sql package ?

Answer: The  java.sql  package includes only one class, that is, DriverManager.
              All others are interfaces in  java.sql  package.

If something is unclear, draw a picture

Creating an image of what one learns or percieves helps one to retain it for a longer time. So, keep asking questions and keep drawing your concepts!

JAVA Project Specifications Lecture Notes: SE OS JAVA

X