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 the difference between a local variable and an instance variable?

0 Answers  


What is string [] args?

0 Answers  


How do you override a variable in java?

0 Answers  


Can an exception be rethrown?

4 Answers   Wipro,


What are heap memory and stack memory and what are memory tables.

0 Answers   Aspiring Minds,


What is the meaning of find and replace?

0 Answers  


What do you mean by append?

0 Answers  


Why do we use variables?

0 Answers  


i need income tax program using java inheritance concept. could u please help me?

2 Answers  


Explain what is encapsulation?

0 Answers  


What methods are used to get and set the text label displayed by a button object?

0 Answers  


Why local variables are stored in stack?

0 Answers  


Categories