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 vector capacity in java?

0 Answers  


What is the purpose of the finalize() method?

0 Answers  


What do you know about the garbate collector?

0 Answers  


What is a local class in java?

0 Answers  


What data type is string java?

0 Answers  


Can interface be private in java?

0 Answers  


where lives in jvm

5 Answers  


Explain the difference between throw and throws in java?

0 Answers  


What does string [] args mean?

0 Answers  


What is the difference between applet and application?

0 Answers  


What is the history of java?

0 Answers  


Is java 11 paid version?

0 Answers  


Categories