Você está na página 1de 3

Technical Questions in JAVA

Training program for JKC Students-FEB2006 1)What are the different types of access specifiers present in JAVA? a)public b)protected c)abstract d)final e)friendly user f)private etc 2)What are the different packages in Java? java.sql, java.net, java.lang, java.awt, java.applet etc 3) What are the features of JAVA? 1)Simple,Secure Oriented 5)Portable 2)Distributed . 3)Platform independent 4)Object-

4)What are the fundamentals of JAVA? a)Data abstraction e)Dynamic Binding 5)What is Data abstraction? The process of hiding the important details but giving brief information for the users about the class is known as data abstraction. 6) What is Encapsulation? Encapsulation is the process of combining both data &methods into a single b)Encapsulation c)Inheritance d)Ploymorphism

entity.

7) What are the different types of inheritances?

a)Single level inheritance d) Heirarchical inheritance .

b) Multi level inheritance

c) Multiple inheritance

8)What is Parameter Order Association? The order of passing the values to a method should be same in the order&type of its parameter list is known as Parameter Order Association. 9) What is ploymorphism? The nature of having different behaviours in different situations is called Polymorphism. 10) What are the different types of programs present in JAVA?

a)Application Programs b)Applets.

11) What is a Button? A button is a component that triggers an event when passed.

12) What is a Check Box? A Check box is a component that enables the user to toggle a choice on or off ,like a light switch.. 13) What is Choice? A Choice is a simple list of items from which the user can choose. 14) What is the difference b/w a list&a choice? The choice allows user for single selection where as the list allows the user for single/multiple selection of values. 15) What is a Dialog? A Dialog box is normally used as a temporary window to receive additional information from the user/to provide notification that some event has occurred. 16) Which one is most complex layout manager among all layout managers? Gridbag layout manager 17) What is multiple inheritance? The process of deriving a class from morethan one base class is known as Multiple Inheritance. 18) What is a thread? Thread is a small part of a program which is used to enable multi tasking within a program. 19) What is an abstract method? An abstract method will have only the definition in the calss in which it is declared where as its code will be written in its sub class which is inherited from it. 20)What is the difference b/w Text Field&Text Area?

Text Field can give only one row for data entry where as Text area provides the user to enter multiple lines of text. 21) What is a CheckboxGroup? CheckboxGroup is also known as optionButton,the variation of checkboxes,but only 1-box in the group can be checked at a time. 22) What is a canvas? Canvas is a UI Component that is used to draw graphics & enable user interaction. 23) What is the base class for all classes in AWT heirarchy? Object Class. 24)What is a constructor? Constructor is a method named same as its class name without having any return types&which is invoked automatically when the object is created for its class. 25)What is constructor overloading? The process of having constructors belongs to same class with different parameters list known as Constructor overloading. 26) What is an adaptor class? Adaptor class is the class which defaultly provides the basic definition code for all abstract methods of different events. 27)What are the two useful methods present in object class? a)public Boolean equals() b)public string toString().

28) What is the method used for garbage collection in JAVA? Daemond Method. 29) What are useful java classes? Date,calender,System,String,Number&Object. 30) What is the method used to draw a circle? drawOval () method is used for drawing a circle.

Você também pode gostar