ALLInterview.com :: Home Page      
 Advertise your Business Here     
Browse  |   Placement Papers  |   Company  |   Code Snippets  |   Certifications  |   Visa Questions
Post Question  |   Post Answer  |   My Panel  |   Search  |   Articles  |   Topics  |   Errors
   Testimonials Refer this Site  Refer This Site to Your Friends  Site Map  Contact Us      
   
 
 Categories >> Software >> Java Related >> Java J2EE
 
  Core Java (1749)   Advanced Java (335)   Swing (44)   EJB (134)   Servlets (256)
  Struts (198)   JDBC (188)   JMS (9)   SunOne (3)   J2EE (73)
  Weblogic (148)   Websphere (14)   Java Networking (20)   Java J2EE AllOther (86)
 
Suggest New Category 
 


 

Question Asked @ Answers Views     Select
solve this is my problem byte a=40,byte b=50 both add value is 90 this is with in range of byte... byte range is -128to 127.... why this pgm gives error like type mismatch.... package javapgms; public class byte1 { public static void main(String args[]) { byte a=40,b=50; byte c=a+b; System.out.println(c); } } note : dont use int k... a,b,c are in byte range... mind it..    0  8
Why use POJO when I can use hashmap    0  7
Urgent recruitment in CTS for JAVA .Experience 3 to 10 years.    1  18
difference between  ejb,struts,hibernate,spring and jsp    0  27
what is container? infosys   1  78
What is aggregation? cap-gemini   0  57
What is design pattern and there types? cap-gemini   0  33
How do you implement polymorphism in our day to day life? cap-gemini   0  56
Explain JSP life cycle cap-gemini   0  28
What is access modifiers? cap-gemini   0  34
What is OOPS Concept? cap-gemini   1  66
how to create a sub domain in domain ? tcs   1  88
How to prevent to create multiple objects of a java class? tcs   2  145
public class Test { public static void main(String ar[]) { Integer a = 10; Integer b =10; Integer c = 145; Integer d = 145; System.out.println(a==b); System.out.println(c==d); } } igate   7  268
How Struts internally works? For Example if we type the URL "/login.do" how the process goes internaly? How the struts-config.xml loaded? allied-digital   0  143
E-Mail New Answers        Answer Selected Questions       
 [1]    2  ... 16   ... 31   ... 46   ... 61   ... 76   ... 91   ... 106   ... 121   ... 136   ... 151   ... 166   ... 181   ... 196   ... 211    Next
 
 
 
 
 
Un-Answered Questions
 
 Question Views   Select
 
if u open login & logout ,how can udisplay the timelogin & logout members ? 252
what is object slice? 279
Write an algorithm program in java for the following question.. 1) S is a set of integers.X is an integer obtained by sum of two digits in S. Write logic for whether or not the X is from the S. The time of algorithm should not exceed o(n logn). 258
What is aggregation? 57
How native code can be used in a servlet? 1278
There is a Banking application. It has 2 types of account, Savings and Current. Write a method calculateInterest by passing an ArrayList of these account objects and calculate Interest accordingly. Write code for this situation 238
In inglish: How to convert jar to exe files? Em português: Como converter arquivos .jar para .exe? 339
What is the form of storage space in java? 388
how to make a index.jsp for running the site in internet and find an error for connection with weblogic server and java that give an error invalid object name.and how to maintain session. 446
what is an isolation level? 319
how to write a program for sending mails between client and server 276
what is mean by hasing and maping in java platform and advantage? 352
3.2 Consider the following class: public class Point { protected int x, y; public Point(int xx, int yy) { x = xx; y = yy; } public Point() { this(0, 0); } public int getx() { return x; } public int gety() { return y; } public String toString() { return "("+x+", "+y+")"; } } Say you wanted to define a rectangle class that stored its top left corner and its height and width as fields. 3.2.1 Why would it be wrong to make Rectangle inherit from Point (where in fact it would inherit the x and y coordinates for its top left corner and you could just add the height and width as additional fields)? (1) 8 Now consider the following skeleton of the Rectangle class: public class Rectangle { private Point topLeft; private int height, width; public Rectangle(Point tl, int h, int w) { topLeft = tl; height = h; width = w; } public Rectangle() { this(new Point(), 0, 0); } // methods come here } 3.2.2 Explain the no-argument constructor of the Rectangle class given above. 3.2.3 Write methods for the Rectangle class to do the following: • a toString() method that returns a string of the format "top left = (x, y); height = h; width = w " where x, y, h and w are the appropriate integer values. • an above() method that tests whether one rectangle is completely above another (i.e. all y values of the one rectangle are greater than all y values of the other). For example, with the following declarations Rectangle r1 = new Rectangle(); Rectangle r2 = new Rectangle(new Point(2,2), 1, 4); the expression r2.above(r1) should give true, and r2.above (r2) should give false. (You can assume that the height of a rectangle is never negative.) (2) (5) 182
What is JTS? 341
what is difference betweem home interface and remote interface? 769
E-Mail New Answers        Answer Selected Questions