Honhar Engineer

Honhar Engineer
Thanks for visiting,stay connected for more updates !

Sunday, March 31, 2013

Very funny quote...

Banner in front of Engineering college-
" Drive slowly don't kill the student, 
  leave them to us its our duty, we do it in a legal way...."

Saturday, March 30, 2013

A Facebook Chat Box Trick

Now send your profile pic to your friend during chatting on facebook.......


Just type this code with your USERNAME into chat box during chatting with any friend-

                               

                             [[ USER NAME/USER ID ]] 

Example-

[[ ashishsinghpatel ]]

[[ facebook ]]

[[ zuck ]]

Must read it once...

A group of students were asked to list what they thought were the present "Seven Wonders of the World." Though there were some disagreements, the following received the most votes:

1. Egypt's Great Pyramids
2. Taj Mahal
3. Grand Canyon
4. Panama Canal
5. Empire State Building
6. St. Peter's Basilica
7. China's Great Wall

While gathering the votes, the teacher noted that one student had not finished her paper yet. So she asked the girl if she was having trouble with her list.

The girl replied, "Yes, a little. I couldn't quite make up my mind because there were so many."
The teacher said, "Well, tell us what you have, and maybe we can help."
The girl hesitated, then read, "I think the 'Seven Wonders of the World are:

1. to see
2. to hear
3. to touch
4. to taste
5. to feel
6. to laugh
7. and to love."

The room was so quiet you could have heard a pin drop. The things we overlook as simple and ordinary and that we take for granted are truly wondrous! A gentle reminder - that the most precious things in life cannot be built by hand or bought by man.

"Each day comes bearing its own gifts need is just untie the ribbons."

Friday, March 29, 2013

Fantastic meanings...

CIGARETTE:
A pinch of tobacco rolled in paper with fire at one end and a fool at the other !


MARRIAGE:
It's an agreement wherein a man loses his bachelor's degree and a woman gains her master's !


CONFERENCE:
The confusion of one man multiplied by the number present !

CONFERENCE ROOM:
A place where everybody talks, nobody listens and everybody disagrees in the end !

SMILE:
A curve that can set a lot of things straight !

YAWN:
The only opportunity some married men ever get to open their mouths !

EXPERIENCE:
The name men give to their mistakes !

DIPLOMAT:
A person who tells you to go to hell in such a way that you actually look forward to the trip !

OPTIMIST:
A person who, while falling from the EIFFEL TOWER,says midway:"SEE I AM NOT INJURED YET !"

BOSS:
Someone who is early when you are late and late when you are early !

POLITICIAN:
One who shakes your hand before elections and your confidence afterward !

DOCTOR:
A person who kills your ills with pills and Later with his bills !

Thursday, March 28, 2013

Why Java doesn't support multiple inheritance ?

1) First reason is ambiguity around Diamond problem, consider a class A has foo() method and then B and C derived from A and has there own foo() implementation and now class D derive from B and C using multiple inheritance and if we refer just foo() compiler will not be able to decide which foo() it should invoke. This is also called Diamond problem because structure on this inheritance scenario is similar to 4 edge diamond, see below
           A foo()
           / \
          /   \
B foo()      C foo()
          \   /
           \ /
            D
           foo()


In my opinion even if we remove the top head of diamond class A and allow multiple inheritances we will see this problem of ambiguity.

Some times if you give this reason to interviewer he asks if C++ can support multiple inheritance than why not Java. hmmmmm in that case I would try to explain him the second reason which I have given below that its not because of technical difficulty but more to maintainable and clearer design was driving factor though this can only be confirmed by any of java designer and we can just speculate. Wikipedia link has some good explanation on how different language address problem arises due to diamond problem while using multiple inheritances.

2) Second and more convincing reason to me is that multiple inheritances does complicate the design and creates problem during casting, constructor chaining etc and given that there are not many scenario on which you need multiple inheritance its wise decision to omit it for the sake of simplicity. Also java avoids this ambiguity by supporting single inheritance with interfaces. Since interface only have method declaration and doesn't provide any implementation there will only be just one implementation of specific method hence there would not be any ambiguity.

First Java Program

Looking at First Java program :

This is demonstrating simple example program that displays the text,” My First JAVA program...............” on the console.
 public class FirstProg
{ //This is a first simple java program.
 public static void main(String[] args)
 {
  System.out.println("My First JAVA program...............");
 }
}

Explanation :

public :
A keyword of the Java language that indicates that the element that follows should be made available to other Java elements.
As a result, this keyword indicates that the FirstProg class is a public classwhich means other classes can use it.

class :
Another Java keyword that indicates that the element being defined here is a class. All Java programs are made up of one or more classes.
A class definition contains code that defines the behavior of the objects created and used by the program.

FirstProg :
An identifier that provides the name for the class being defined here. While keywords, such as public and class, are words that are defined by the Java programming language, identifiers are words that you create to provide names for various elements you use in your program.
In this case, the identifier FirstProg provides a name for the public class being defined here.
{ :
The opening brace on line 2 marks the beginning of the body of the class. The end of the body is marked by the closing brace on line 7.
Everything that appears within these braces belongs to the class. As you work with Java, you’ll find that it uses these braces a lot.

//This is a first simple java program. :
This is a commentLike most other programming languages, Java lets you enter a remark into a program’s source file.
The contents of a comment are ignored by the compiler. Instead, a comment describes or explains the operation of the program to anyone who is reading its source code.
In this case, the comment describes the program and reminds you that the source file should be called FirstProg.java. Of course, in real applications, comments generally explain how some part of the program works or what a specific feature does.
Java supports three styles of comments. The one shown at this program is called a single-line commentThis type of comment must begin with // as shown in the program.
The second style of the comment is multiline commentThis type of comment must begin with /* and end with */. Anything between these two comment symbols is ignored by the compiler. As the name suggests, a multiline comment may be several lines long.
For example :
          /*This is a first
          simple java program. */
The third style of the comment is documentation comment. This type of comment is used to produce an HTML file that documents your program.
The documentation comment begins with a /** and ends with a */. Documentation comments are explained in next chapter.

public :
The public keyword is used again, this time to indicate that a method being declared here should have public access.
That means classes other than the FirstProg class can use it. All Java programs must have at least one class that declares a public method named main.
The main method contains the statements that are executed when you run the program.

static :
If you are want to execute any elements (properties) without an object means before the object creating then it must declare a static so compiler directly execute those static elements.
Here the main method is executed before the any object is creating so it must declare a static. The keyword static allows main( ) to be called without having to instantiate a particular instance of the class.
This is necessary since main( ) is called by the Java interpreter before any objects are made.

void :
In Java, a method is a unit of code that can calculate and return a value.
For example :
you could create a method that adds two numbers. Then, the addition would be the return value of the method.
If a method doesn’t need to return a value, you must use the void keyword to indicate that no value is returned. Because Java requires that the main method not return a value, you must specify void when you declare the main method.

main :
Finally, the identifier that provides the name for this method.
Java requires that this method be named main because main( ) is the method called when a Java application begins.
Besides the main method, you can also create additional methods with whatever names you want to use.

(String[] args) :
It’s called a parameter list, and it’s used to pass data to a method.
Java requires that the main method must receive a single parameter that’s an array of String objects.
By convention, this parameter is named args. If you don’t know what a parameter, a String, or an array is, don’t worry about it You can find out what a String, parameters and arrays are in the next chapter.
You have to write (String[] args) on the declaration for the main methods in all your programs. In this case, args receives any command-line arguments present when the program is executed.
This program does not make use of this information, but several other programs use command-line argument.

Another { :
Another set of braces begins at line 4 and ends at line 6. These mark the body of the main method.
Notice that the closing brace in line 6 is paired with the opening brace in line 4, while the closing brace in line 7 is paired with the one in line 2.
This type of pairing is commonplace in Java. In short, whenever you come to a closing brace, it is paired with the most recent opening brace that hasn’t already been closed — that is, that hasn’t already been paired with a closing brace.

 System.out.println(“My First JAVA program...............”); :
This is the only statement in the entire program. It calls a method named println that belongs to the System.out object.
System is a predefined class, it is automatically included in your programs that provides access to the system and out is the output stream that is connected to the console.
The println method displays a line of text on the console. The text to be displayed is passed to the println method as a parameter in parentheses following the word println.
In this case, the text is the string literal My First JAVA program............... enclosed in a set of double quotation marks. As a result, this statement displays the text My First JAVA program............... on the console.

Note: In Java, statements end with a semicolon. Because this is the only statement in the program, this line is the only one that requires a semicolon.
Java is case-sensitive. Thus, Main is different from main.
} :
Line 6 contains the closing brace that marks the end of the main method body that was begun by the brace on line 4.
Another } :
Line 7 contains the closing brace that marks the end of the FirstProg class body that was begun by the brace on line 2. Because this program consists of just one class, this line also marks the end of the program.

To run this program, first of all save a text file named FirstProg.java . Then, compile it by running this command at a command prompt:

javac FirstProg.java
This command creates a class file named FirstProg.class that contains
the Java bytecodes compiled for the FirstProg class.
Now run the program by entering this command:
java FirstProg
Output :
My First JAVA program...............

Wednesday, March 27, 2013

Know who unfriend you on Facebook...

Now make your facebook account interesting with a lot of functions like 
Who unfriend you on facebook.......Really, its very easy. 
You requires only two things-
♥ A Google Chrome Browser
♥ Social Fixer
So, you can easily download Google Chrome from internet. Means you need a social fixer.

Social Fixer for Facebook fixes annoyances, adds features, and enhances existing functionality to make FB more funny and efficient. 
It will give a great functionality to your fb account.
Social Fixer is a extension. You can easily add it to your chrome from chrome web store.
Download Social Fixer For Your Google Chrome

Funny fact of class rooms....

Classroom is like a train...
1st 2 benches are for VIP executives...
middle 2 benches are general compartments &
last 2 benches are sleeper coaches :O :p :O 

Tuesday, March 26, 2013

Fabulous trick...

As some of you might be knowing that the flight number of the plane 
that had hit World Trade Center on that dreadful day (9/11) was Q33NY. 
Now call this trick a coincidence or anything else but whatever it is, 
it does startle us you will be definitely amazed by the this trick.

1.First open Notepad.

2.Type “Q33N” (without quotes) in capital letters.

3.Increase the font size to 72.

4.Change the Font to Wingdings.

Truely heart-touching lines........

We Never Know Why We Like Someone More Than Others..
Why We Love Someone Without Any Reason..         ♥ ♥♥♥ ♥
Why We Feel Happy Thinking About Their Presence Because,
Some Feelings Has No Explanation or Definition...!   ♥ ♥♥♥ ♥

Some funny and true theorems...


LAW OF QUEUES: the queue you have left will move faster than the one you are in...

LAW OF MECHANICS: whenever there is grease in your hands your nose starts 2 itch terribly...

LAW OF REACHABILITY: a coin dropped down will attain d most unreachable corner possible..

LAW OF ENCOUNTER: probability of meeting a known person is high 

when you are with someone you are not supposed to be...

THEOREM OF TELEPHONE :when dialing a wrong number it will never be engaged...

THEOREM OF EXAMS : during exams everything in the world becomes interesting except reading, 

even watching a wall..

Monday, March 25, 2013

My demand to Government :

 Start a scheme like 
"Rajiv Gandhi Jan Kalyan Samsung Galaxy III Yojna" !

A Windows 7 Trick

Make a list of all programs of the computer---
This will help in finding the all programs of your Windows 7 

Steps are as follows-
~Create New Folder
~Rename Created Folder as :

Ashish.{ED7BA470-8E54-465E-825C-99712043E01C}
you can change name , you can put any name instead of Ashish.
ex-  Programs.{ED7BA470-8E54-465E-825C-99712043E01C}"

Best line written in front of a church -

"Always believe in god... '
because there are some questions that cannot be answered by google"

Engineers become shayar during Exams...

kahan koi kitab aisi mili,
jispar dil luta dete,
har ek ne dimaag khaya kis-kis ko nipta dete,
ab syllabus dekhkar sonchte hain k 
1 mahina aur hota to duniya hila dete :P

Sunday, March 24, 2013

That's So true.....

Its better to bunk a class & do fun with friends..
.
.
because
.
.
today when i look back...marks never made me laugh but memories do ♥

Saturday, March 23, 2013

Today's Reality :

Big house but Small family...!

More Degrees but less Common sense...!

Advanced medicine but Poor health...!

Touched Moon but Neighbours unknown....!

High income but less peace of Mind....!

High IQ but less Emotions....!

Good knowledge but less Wisdom....!

Lots of human beings but less Humanity...!

Costly watches,but no Time :(

Friday, March 22, 2013

A new element added to PERIODIC TABLE :

Name: Girl
Symbol: Gl
Atomic weight:" Don't even dare to ask..

Physical properties:
1. Boils at any time,
2. Melts when handled with love and care,
3. very bitter when mishandled.


Chemical properties:
1. Very reactive,
2. Highly unstable,
3. Possesses high affinity to gold, platinum,diamond, 

branded clothes and other expensive items.

Nature:
1. Money reducing agent..
2. Volatile when left alone..


Occurrence:
Mostly found infront of the mirrors...!!

Thursday, March 21, 2013

Brilliant Attitude.......




Ultimate truth of college life...!!

If a girl loves a boy, no one
knows except the girl..!!
.
.
.
.
.
.
.
.
.
.
and if a boy loves a girl, everyone knows
except the girl...!!

Wednesday, March 20, 2013

Mind-blowing joke.....

Once rajnikant appeared in exam of B.E.
Guess what happened?
.
.
.
.

Failed..?
.
.
.
.
.
Beta ye ENGINEERING hai.
Rajni ho ya Gajni...
Sabki hai BAJNI.............!!


JWWUAX93QZ9G 

Some realities:

-A guy with a charming personality,
having attitude is an Army Officer!

-A guy with lots of attitude and
cuteness on face is a doctor!

-A guy with lots of brain and money
is a businessman!

-A guy with no money, no cuteness,
no personality and still attitude is
an ENGINEER...!!!

But Har Ek Engineer Jaruri Hota HAi.....

Har Ek Engineer Jaruri Hota Hai...

Koi Saala Electronics Ko Use Karna Sikhaye,
Koi Software Ke Through Hardware Chalaye..:p

Koi MachinO Ka Devta,
Koi Ghost Hota Hai...
Par Har Ek Engineer Jaruri Hota HAi....:p

Koi Road Ke MAst Designs Banaye,
Koi Sala Jabardast gadgets Leke Aaye..
Koi Communication Ka Badshah,
Koi Roast hota Hai...:D

But Har Ek engineer Jaruri Hota Hai..

Koi SALA Rivers Pe Dam Banwaye,
Koi Unchi Unchi Buildings, Cineplex Khadi KAraye..

Koi Nature Se Imandaar, Koi Chor Hota Hai..
But Har Ek Engineer Jaruri Hota HAi..:D

Koi Aeronautics Me Kamal Dikahye,
Koi Chemicals Ki Gutthhi Suljhaye..

Koi Research Ka badshah,
Koi Lost Hota HAi...:O

But Har Ek Engineer Jaruri Hota HAi..:D :D

Tuesday, March 19, 2013

Reality of assignments.....

"Every engineering class has 2-3 students who
are the
Orginial Creators of Submissions (OCOS).
.
.
.
If they make any mistake in their submission,
the same mistake trickles down in the rest class
submissions!"

Ultimate joke.....

Boy To God After Result
"Hazaro Ki Kismat Tere Haath Methi
Agar Pass Kar Deta To Kya Baat Thi
.
.
.
..
God To Boy- Ishq Thoda Kam Ladata To
Kya Baat Thi!!
Kitaabein To Sari Tere Pass Thi!! :P

Monday, March 18, 2013

Very True.....

The rain falls because the sky can
no longer handle its heaviness.
Just like tears, it falls because the
heart can no longer handle the pain !

Sunday, March 17, 2013

Amazing But True.....

There are Billions of people in this
World
.
.

But....
Sometimes you really need just
One . . . . ! ! 
[ ♥ ]

Saturday, March 16, 2013

Simply touching one........

Once a good guy asked a question to god,
“Why every girl loves a Wrong Guy?”
God answered what if a wrong person
makes her cry, I always send the right
one to remove tears from her eyes..???

Lifetime advice...........

Never search your happiness in others,
It will make you feel alone.
Search it in yourself,
you will feel happy even when you are
left alone.

Thursday, March 7, 2013

One of funniest reality.......

Everybody thinks studying engineering is just like entering in
a park and enjoying the relaxing mood ...
.
.
.
.
.
.
.
.
But only the engineers know that the park is JURASSIC PARK !!!