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
What is  Ideal Design of Class?
 Question Submitted By :: Guest
I also faced this Question!!     Rank Answer Posted By  
 
  Re: What is Ideal Design of Class?
Answer
# 1
declare variables as Private and methods which accesses 
variables as public.
 
Is This Answer Correct ?    0 Yes 1 No
Venkat
 
  Re: What is Ideal Design of Class?
Answer
# 2
Ideal Design of Class is First identity Different Business 
Objects and identity Business Data & Business Methods on 
which u r working on............Think U are working on 
SHAPE class think shape is an object and Draw & erase are 
business methods which u should Operate ON..And shape has 
Different data objects like Square,Rectangle
 
Is This Answer Correct ?    0 Yes 0 No
Ershad Md Sk
 
 
 

 
 
 
Other Core Java Interview Questions
 
  Question Asked @ Answers
 
what is main purpose of abstract class?  2
What is the differenc between Enemuration interface and iterator interface according to accessing?  4
What is meant by final class, methods and variables?  2
What is cloneable interface?  5
What are the ways of polymorphism other than Overridding & Overloading  1
Why cant we define System.out.println() inside a class directly?  4
in a constructor what happen if u call super and this in the same class? i know that it is not possible to call both in the same one? if we call what will happen? ITC-Infotech6
what is the use of declaring constructor as private? Sai-Softech3
What is the Vector class?  3
What is an Applet ?  2
Explain the relationship between the Canvas and Graphics class?  1
what is stringtolennizer with example? Symphony1
How two different class threads communicate with each other?. send example code.  4
What is meant by class loader and how many types are there? Apple1
How to reduce flicking in animation? TCS1
What is yielding and sleeping? how they different?  2
Which method will get invoked first in a stand alone application?  1
Name the methods that used to get and set the text label displayed by a Buttonobject?  1
What will happen inside init() in servlet. my interviewer asked servlet lifecycle. i said "once servlet is loaded in to memory init() will be called which performs servlet initialization " . Again interview asked what values will be initialized . what is difference between init() and init(ServletConfig config). Infinite-Computer-Solutions2
strings in java are objects.why?  2
 
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