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                      
info       Did you received any Funny E-Mails from your Friends and like to share with rest of our friends? Yeah!! you can post that stuff   HERE
Google
 
 Categories  >>  Software  >>  Java J2EE  >>  Java Related       
 
  Core Java (1202)   Advanced Java (263)   Swing (41)   EJB (124)   Servlets (203)
  Struts (134)   JDBC (159)   JMS (4)   SunOne (3)   J2EE (27)
  Weblogic (34)   Websphere (3)   Java Networking (17)   Java J2EE AllOther (58)
 
Suggest New Category 
 


 

View Page with Answers
  Question  Asked @ Answers Views     select
 
what are depricated methods in threads and explain the lifecycle methods  5  1345
explain the clone method and clonable interface  1  1897
why the constructor should be used in class,if there is no constructor what will happen?  4  1588
how can u create the object with out new operator  2  1795
explain oops concepts with examples? TCS   16  22237
when,where and how to use abstract class and interface  2  1035
what is difference between class and object?  11  6836
when to use abstract class and when to use interface? IonIdea  5  5002
how can i connect to database in a applet ?  1  939
In the first round, there are 30 aptitude and 30 java questions. We are suppose to finish both the papers within 60 minutes. I cleared this round. Next was test for programming skills. In this section, Some 7 n's were asked. 1. What is the difference b/w sleep(1000) and wait(1000) 2. what is the diff b/w static block and static function? 3. Write a program to validate IP address using string tokenizer. 4. Write a program to create singleton class 5. write a function to reverse the string 6. Write a prog to print prime nos upto n. EX: If n=9, It shld print 1,2,3,5,7 7. One program on collections- Write a program to print no. of times a number is repeating in an array. EX- {1,3,1,2,5,7,3,7,34,3,8,3} It should print: 1- 2 times 3- 4 times and so on 7. Write a func to print fibonocci series After this I had technical interview, which went on for. 60 mins or so. There were qn's about multi threading, Exception handling and collection classes. Knowledge about collections was very important for the post I was interviewed for. Huawei  1  456
what s the difference b/w EJB 2.0 and EJB 3.0 technically Mind-Tree   2  4282
what is the difference b/w PUT and POST method to send data to the server Mind-Tree  2  2599
How to set Connection Pool size in Weblogic Server ? Infosys  9  6695
What is Virtual Host in Weblogic , how to create it & what is the advantage ? iFlex  11  6240
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.  0  208
E-Mail New Answers        Answer Selected Questions       
 
Prev    1   ... 12   ... 23   ... 34   ... 45   ... 56    70   [71]    72  ... 89   ... 100   ... 111   ... 122   ... 133   ... 144    Next
 
 
 Java J2EE interview questions   Java J2EE Interview Questions  J2ME interview questions   J2ME Interview Questions  Java Related AllOther interview questions   Java Related AllOther Interview Questions
 
 
 
Un-Answered Questions
 
 Question Views Asked at   Select
 
How to implement a multithreaded applet? 325  
How to check null value in JDBC? 303  
Can we call virtual funciton in a constructor ? 119  
what is the diffrence between insurance and telecom domain? 196  
We are seeing so many videos/audios as many web sited. But question is these videos or audios are stored in Databases ( Oracle, Mysql, Sybase,... ) or stored any file directory from there they will give the link for that? Pls explain and give sample code to achieve this one? Thanks, Seenu. 29 Symphony
Can u give me sample code for ServiceImpl and DaoImpl, in j2ee . 47  
What is Normalization? 135  
What is isolation level? How to set it? 178  
Have you used threads in Servelet? 202 Satyam
What is scalable, portability in the view of J2EE? 137  
What is database null and Java null? 207  
Explain the architectural relationship between JavaBeans and JTA? 222  
what is an isolation level? 122  
To identify IDL language what mapping mechanism is used? 237  
How entity beans support container managed persistence? 494  
Difference between a MenuItem and a CheckboxMenuItem? 199  
whats is mean by class.forName() whats the return type of class 96 SolutionNET
how to deploy the application 33  
Question 5 [15] Consider the following classes, illustrating the Strategy design pattern: import java.awt.*; abstract class Text { protected TextApplet tA; protected Text(TextApplet tApplet) { tA = tApplet; } abstract public void draw(Graphics g); } class PlainText extends Text { protected PlainText(TextApplet tApplet) { super(tApplet); } public void draw(Graphics g) { g.setColor(tA.getColor()); g.setFont(new Font("Sans-serif", Font.PLAIN, 12)); g.drawString(tA.getText(), 20, 20); } } class CodeText extends Text { protected CodeText(TextApplet tApplet) { super(tApplet); } public void draw(Graphics g) { g.setColor(tA.getColor()); g.setFont(new Font("Monospaced", Font.PLAIN, 12)); g.drawString(tA.getText(), 20, 20); } } public class TextApplet extends java.applet.Applet { protected Text text; protected String textVal; protected Color color; public String getText() { return textVal; } public Color getColor() { return color; } public void init() { textVal = getParameter("text"); String textStyle = getParameter("style"); String textColor = getParameter("color"); if (textStyle == "code") text = new CodeText(this); else text = new PlainText(this); if (textColor == "red") color = Color.RED; else if (textColor == "blue") color = Color.BLUE; else color = Color.BLACK; } public void paint(Graphics g) { text.draw(g); 10 } } The Text class is more complicated than it should be (there is too much coupling between the Text and TextApplet classes). By getting rid of the reference to a TextApplet object in the Text class and setting the colour in the paint() method, one could turn the Text class into an interface and simplify the strategy classes considerably. 5.1 Rewrite the Text and PlainText classes to do what is described above. (6) 5.2 Explain the consequent changes that are necessary to the TextApplet class. (4) 5.3 Write an additional strategy class called FancyText (to go with your simplified strategy classes) to allow fancy text to be displayed for the value "fancy" provided for the style parameter. It should use the font Font ("Serif", Font.ITALIC, 12). (3) 5.4 Explain what changes are necessary to the TextApplet class for this. (2) 21  
Hi frnds iam new to Java Kindy any one can provide or me Servlets Example code and can explain to me flow of servlets and as Jsp and Struts and provide to me some sample example on these 3 topic flow,code example,and tutorials,and related websites which i can refer....thanks in advance.......... 11  
E-Mail New Answers        Answer Selected Questions
 
 
 
 
 
 
   
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