The Secret of Data and Information

For Most people day begins with the sound of Alarm Clock. Then a routine to get up from the bed to the Work Place. On the way to workplace and in the work place, we get a lot of inputs through the surrounding, people talking, reading, hearing, smelling, watching. After you have finished your work you […]

JAVA Beginners part 15

Java Sound ——— 1)get a sequencer sequencer player = midisystem.getsequencer(); 2)make a new sequence sequence seq = new sequence(timing,4); 3)get a new track track t = seq.createTrack(); 4)fill in the track with midievents t.add(mymidievent1); player.setsequence(seq); the actual instructions of a song is held in the message. setmessage(144,1,44,100) 144 says the message type, on or off […]

JAVA Beginners part 13

Static Methods Math Class has lot of static methods. These methods can be used without a need to create an object of math class. There is no Object needed, no heap space spent. The methods can be c… Source: JAVA Beginners part 13

JAVA Beginners part 12

Java has two memory areas which are Heap and Stack ————————————————– Objects live in Heap ( Garbage collectible Heap) Variables and methods live in Stack Instance variables the variables declared in a class and are associated with an Object.They live on Heap. Local variables are the one declared in a method which include the method […]

JAVA Beginners part 11

The compiler decides whether you can call a method based on the reference type, not the actual object type. Any object that you create is more than a simple Object. It has access to all of the meth… Source: JAVA Beginners part 11

JAVA Beginners part 10

A class cannot be marked private. In case you dont want a class to be sub classed/inherited you can mark it as Final.More on Final later. Override = The method name , parameters and return type mus… Source: JAVA Beginners part 10