Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


write a class to input 2 points by the user & check the line
maked by the points is horizontal,vertical or rectangle?



write a class to input 2 points by the user & check the line maked by the points is horizontal,..

Answer / murli

if (x1,y1) and (x2,y2) are two points..then line made is horizontal if (y1==y2).vertical if(x1==x2).Two points can never form a rectangle.

Is This Answer Correct ?    1 Yes 0 No

Post New Answer

More Core Java Interview Questions

What is a method signature java?

0 Answers  


Explain the concept of hashtables?

0 Answers  


Which is faster string or stringbuilder?

0 Answers  


how to open and edit XML file in Weblogic???

0 Answers   Symphony,


What is flag in java?

0 Answers  


What are 4 pillers of object orinted programming?

0 Answers  


what are the methods in object?

0 Answers   IBS,


What is java util hashmap?

0 Answers  


What are parameters in a method?

0 Answers  


Is null == null in java?

0 Answers  


What is the difference between the paint() and repaint() methods?

0 Answers  


Define an applet in java?

0 Answers  


Categories