ALLInterview.com :: Home Page KalAajKal.com
 Advertise your Business Here     
Browse  |   Placement Papers  |   Company  |   Code Snippets  |   Certifications  |   Visa Questions
Post Question  |   Post Answer  |   My Panel  |   Search  |   Articles  |   Topics  |   ERRORS new
   Refer this Site  Refer This Site to Your Friends  Site Map  Bookmark this Site  Set it as your HomePage  Contact Us     Login  |  Sign Up                      
tip       Ask Questions on ANYTHING, that arise in your Daily Life at     FORUM9.COM
Google
 
Categories  >>  Software  >>  Core Java  >>  Java J2EE  >>  Java Related
 
 


 

 
 Core Java interview questions  Core Java Interview Questions
 Advanced Java interview questions  Advanced Java Interview Questions
 Swing interview questions  Swing Interview Questions
 EJB interview questions  EJB Interview Questions
 Servlets interview questions  Servlets Interview Questions
 Struts interview questions  Struts Interview Questions
 JDBC interview questions  JDBC Interview Questions
 JMS interview questions  JMS Interview Questions
 SunOne interview questions  SunOne Interview Questions
 J2EE interview questions  J2EE Interview Questions
 Weblogic interview questions  Weblogic Interview Questions
 Websphere interview questions  Websphere Interview Questions
 Java Networking interview questions  Java Networking Interview Questions
 Java J2EE AllOther interview questions  Java J2EE AllOther Interview Questions
Question
write a class to input 2 points by the user & check the line
maked by the points is horizontal,vertical or rectangle?
 Question Submitted By :: Guest
I also faced this Question!!     Rank Answer Posted By  
 
  Re: write a class to input 2 points by the user & check the line maked by the points is horizontal,vertical or rectangle?
Answer
# 1
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 ?    0 Yes 0 No
Murli
 

 
 
 
Other Core Java Interview Questions
 
  Question Asked @ Answers
 
Can we access private data outside of the class directly in java programming language? Why There is no runtime checking in java, which leads to access the private data directly outside of a class? Google2
Does garbage collection guarantee that a program will not run out of memory?  1
What are access modifiers in Java ?  5
what is ennumaration? AMDOC1
can u give one sinario when you use Abstract Class and When you use Interface. ITC-Infotech5
How to add panel to a Frame?  2
What is Distributed Application and what is its usage?  1
explain the concept of inheritance with an example? Polaris5
what is an object and how do you allocate memory to it? Wipro3
Which characters are allowed to use as the second character of an identifier, and which characters are not allowed?  2
what is the output ? Math.floor(-2.1) a)2 b)-2 c)-3.0 d)0 Accenture2
Can you declare a static variable in a method?  4
who was the founder of java HCL8
class A{ some variables; public void a()throws Excepion1,Exception2{....} } class B extends A{ variables... public void a()throws E2,E3{.....} } Qns: here override of methods occurs or not,ore else wil give any compilation error or run properly..plz tell me briefly whts happening with the above codes.... Quinnox3
what is connection pooling with example? AMDOC1
what is the difference between statis block and static variable  5
What Method and class used for Connection pooling ? Wipro4
Name the method of a Container that can be used to cause a container to be laid out and redisplayed?  1
which method throws exception of type Throwable  2
what is aberivation of java?  10
 
For more Core Java Interview Questions Click Here 
 
 
 
 
 
   
Copyright Policy  |  Terms of Service  |  Help  |  Site Map 1  |  Articles  |  Site Map  |   Site Map  |  Contact Us interview questions urls   External Links 
   
Copyright © 2007  ALLInterview.com.  All Rights Reserved.

ALLInterview.com   ::  Forum9.com   ::  KalAajKal.com