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 are class,constructor and primitive data types?
 Question Submitted By :: Janet
I also faced this Question!!     Rank Answer Posted By  
 
  Re: what are class,constructor and primitive data types?
Answer
# 1
Class is a template for multiple objects with 
similar features and it is a blue print for objects. it 
defines a type of object according to the data the object 
can hold and the operations the object can perform.
             Constructor is a special kind of method that 
determines how an object is initialized when created.
            primitive data types are 8 types and they are:
byte,short,int,long,float,double,boolean,char.

 
Is This Answer Correct ?    2 Yes 0 No
Janet
 
  Re: what are class,constructor and primitive data types?
Answer
# 2
class is a template for members and methods to be places
constructor is used to initialize the instance variables.
primitive datatypes are the memory holders for diffrent 
type of data to hold
 
Is This Answer Correct ?    0 Yes 0 No
Ravikiran
 
 
 

 
 
 
Other Core Java Interview Questions
 
  Question Asked @ Answers
 
what is a package?  8
What is meant by throwing an Exception? Accenture4
waht happens when a return type ,even void is specified for a constructor?  10
What is the relationship between a method?s throws clause and the exceptions that can be thrown during the method?s execution?  2
Q) I have a ArrayList object, in that object i have added 5 integer values, 5 float values, 5 string values. Now question is how can delete particular type of data ( i.e all int values or all float values or string values) in that list object at a time? Aricent2
What classes of exceptions, thrown by a throw statement?  2
what is auto boxing UHG1
finalize() method?  4
In C we use only compiler. Why java uses both compiler and interpreter? What is its significance?  5
How a class can implement an interface? SysArc4
adapter class ?  2
How can we find size of the object ? RazorSight1
How will you override default serialization mechanism in java  2
What is the Layout for ToolBar?  1
What are the two ways you can synchronize a block of code? Ericsson3
Hi Friends, can you give difference between extending thread class and implementing runnable interface.  2
I/O blocking means?  1
What is the basic functionality of DataOutput interface in java? TCS2
perpare on factorypattern,linklist wothout using collection, (multitharding ie create producer/customer therad producer create Queue continuesly,consumer consume queue, consumer wait if queue is full,producer wait if queue is empty),diff betn sleep(1000)&wait(1000) these r the main Q ask in huawei(2008) Huawei1
How can you reverse a string?  4
 
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