why we import both packages java.awt.*; and java.awt.event.*; as java.awt.*; can import all classes na. then what is the need of importing java.awt.event.*; ?
3 8400Hi.... I applied for the post of scientific officer/Engineer-SB(Programmer).Please post the syllabus and sample papers.
1499why Runnable interface is preferable than extending the Thread class?
Aizza, College School Exams Tests, Sybrant Technologies, Wipro,
7 24854Interface A { String test(); } Interface B { int test(); } Create a class AB which must implements both A & B interfaces.
17 18818
what do you mean by classloader in java?
What is communist flag?
What is variable argument in java?
Can sleep() method causes another thread to sleep?
What is final keyword in java?
Say you want to store the information about a number of pets in an array. Typical information that you could store for each pet (where relevant) would be • Breed of animal • Animal's name • Its birth date • Its sex • Whether it has been sterilised or not • When it is due for its next inoculation • When it last had its wings clipped For each type of pet (eg. dog, cat or bird) you would typically define a class to hold the relevant data. Note: You do not need to implement these classes. Just answer the following questions. 3.1.1 What would be the advantage of creating a superclass (eg. Pet) and declaring an array of Pet objects over simply using an array of Objects, storing each of the instances of the different pet classes (eg. Dog, Cat or Bird) in it? 3.1.2 Would you define Pet as a class or as an interface? Why? (2) (2)
What are data types in programming?
Do you know how to reverse string in java?
What are the principle concepts of oops?
What is Enum in Java?
What are the classes of java?
What is the difference between procedural and object-oriented programs?
What is the difference between the ">>" and " >>>" operators in java?
What is instance example?
Can we access instance variables within static methods ?