Monday, 16 December 2013

MAKE THE MOST USED SYMBOLS WITH YOUR KEYBOARD SHORTCUTS

Alt + 0153..... ™... trademark symbol
Alt + 0169.... ©.... copyright symbol
Alt + 0174..... ®....registeredtrademark symbol
Alt + 0176 ...°......degree symbol
Alt + 0177 ...±....plus-or-minus sign
Alt + 0182 ...¶.....paragraph mark
Alt + 0190 ...¾....fraction, three-fourths
Alt + 0215 ....×.....multiplication sign
Alt + 0162...¢....thecent sign
Alt + 0161.....¡......upside down exclamation point
Alt + 0191.....¿.....upside down question mark
Alt + 1...........smiley face
Alt + 2 ......☻.....black smiley face
Alt + 15.....☼.....sun
Alt + 12......♀.....female sign
Alt + 11.....♂......male sign
Alt + 6.......♠.....spade
Alt + 5.......♣......Club
Alt + 3............. Heart
Alt + 4.......♦......Diamond
Alt + 13......♪.....eighth note
Alt + 14......♫......beamed eighth note
Alt + 8721.... ∑.... N-ary summation (auto sum)
Alt + 251.....√.....square root check mark
Alt + 8236.....∞.....infinity
Alt + 24.......↑.....up arrow
Alt + 25......↓......down arrow
Alt + 26.....→.....right arrow
Alt + 27......←.....left arrow
Alt + 18.....↕......up/down arrow
Alt + 29......↔... left right arrow..

Sunday, 15 December 2013

CAN TABLET REPLACE LAPTOPS

Today i was surfing a online shopping site to buy a Tablet..Then i thought why not buy a Laptop instead of buying a Tablet..But what forced me to take decision was price..
Today price makes a huge difference in shopping..This was the one of the greatest reason for the decline of sale of Nokia mobile..Same is the case with laptop and tablet..Although tablet uses android as their OS but have you ever thought about seeds while buying a mango..So if we get the same facility in low price then why should we go for laptop..Whats the use of window their when your purpose is fulfilled by the android..
I am telling you all this because i was forced to buy a laptop ..But i don't wanted to waste money ..Yes the has gone for PC and the time is now to throw away the laptop and have a new generation tablet...
So hope you always prefer tablet over laptop...

Wednesday, 6 November 2013

PLAY PIANO WHENEVER AND WHEREVER YOU WANT

AAH NICE TO SAY YOU THAT NO NEED TO CARRY YOUR HEAVY PIANO EVERYWHERE..
IF YOU WANT TO PLAY PIANO AT YOUR CANTEEN TO CELEBRATE FRIENDS BIRTHDAY PARTY..I HOPE THIS WOULD BE THE BEST CHOICE FOR YOU..

JUST GO THROUGH IT AND ENJOY
1) CLICK ON THIS LINK PLAY PIANO
2) WAIT FOR SOME TIME TO LOAD
3) BY PRESSING YOUR KEYS OF YOUR KEYBOARD PLAY YOUR PIANO OF YOUR CHOICE..

HAVE FUN AND ENJOY.....

INHERITANCE IN JAVA

MULTIPLE INHERITANCE IS NOT ALLOWED. THEREFORE JAVA USES INTERFACE TO SUPPORT MULTIPLE INHERITANCE...
LETS SOLVE THIS QUERRY BY A PROGRAM..

PROGRAM:-
class X
{
void show()
{
System.out.println("Hello,Java I am inherited");
}
}
class Y extends X
{
}
class Demo
{
public static void main(String args[])
{
Y a=new Y();
a.show();
}
}

Output:-
Hello,Java I am inherited.

Note :- X is a super class and Y is a child class and extends is a keyword.


  • Super Keyword :- used inside the child class to access the super class instance variable.
          There is some restrictions which I have mentioned below..
      Restriction:- The first statement inside the child class constructor must be super, otherwise it will give a compile time error.

Program:-
class X
{
voud show()
{
System.out.println("Hello");
}
}
class Y extends X
{
}
Class Z extends Y
{
z()
{
super.show();
}
}
Public class Demo extends Z
{
public static void main(String args[])
{
Z obj=new z();
}
}

Output:-
Hello

Monday, 4 November 2013

DONT DEPEND ON TECHNOLOGY FULLY

The topic has made me to write from experience that i got in my daily use..After reading this you will tell me duffer..But i am ready to accept this title..But it is true for every single people on this planet..We rely mostly on the technology rather then using our mind or our common sense at a particular situation..As usual i am in support of the technology..But depending totally on it can be dangerous or will make us unsucessfull in that work..
So here is the real story that gives only one conclusion that we should use technology but we should also use our common sense at the same time
The fact begins when i have to catch a train from Patna station to go to my home..Waiting at the station i searched for the trainenquiry website on my phone to find out the train from patna to my home..Then i querried abou the train to find the running status of the train..waiting at platform no. 4 for my train i searched again and again and it showed the same result evertime that train has not started yet..I was worried as time of train was passing..when it was late enough and still it was showing on my mobile that train has not started yet..I decided to ask from the enquiry counter..And you won't beleive what they told to me..They told me that train has just passed from patna station half n hour before..And still it was showing the same result on my phone..That time i decided to use my common sense with the technology world..Hope you laughed at me and in the period of laughing you too have realised that we should not fully depend on technology..God has given us mind to use..And it is well told that humans are those who learn from others fault..

Sunday, 3 November 2013

ARRAY

I don't think that i have to say what is Array as all of you have read it many times..I am staright away here with the program..So read it guys...

PROGRAM:-
public class Demo
{
public static void main(String args[])
{
int []mark=new int[3];
mark[0]=1;
mark[1]=2;
mark[2]=3;
System.out.println(mark[1]);
}
}

Output:-
2

Note:- The word new written in blue color in above program is used to create Array in a java program..
Hope you got it...

Tuesday, 29 October 2013

CAN WE EXECUTE A PROGRAM WITHOUT THE MAIN METHOD ???????

ANSWER TO THE ABOVE LINE IS YES...

I will explain you how it is possible later but before that i want to explain you a main concept of java program that is Static Block.

Static Block:-
            Whenever a block is declared with "static" keyword, it is known as static block in the program..

  • Nature:-
  1. The code inside static block get executed before the execution of main method.
  2. Static block cannot be declared inside any method.
  3. Static block is executed only once
Program:-
class Demo
{
static 
{
System.out.println("It is a static block");
}
public static void main(string args[])
{
System.out.println("It is main method");
}
}

Output:-
It is a static block.
It is main method.

Note:-The line written in pink color in the above program is a static block.

Hope you got the answer of the topic that can we execute a java program without the main method???
The answer is very clear..Yes we can execute a java program without main method with the help of Static Block..
I can give you an example in support of this explanation..
Example: A java program without main method.
class Demo
{
static
{
System.out.println("Hello my reader");
System.exit(0);
}
}

Output:-
Hello my reader

Hence it is clear that we can execute a java program without the main method..