Can a level class be private or protected ?
No. A level class can not be private or protected. It can have either “public” or no modifier. If it does not have a modifier it is supposed to have... Read more »
No. A level class can not be private or protected. It can have either “public” or no modifier. If it does not have a modifier it is supposed to have... Read more »
null unless we define it explicitly. Read more »
No you will have to import the subpackages explicitly. Importing com.MyTest.* will import classes in the package MyTest only. It will not import any class in any... Read more »
Yes the imports are checked for the semantic validity at compile time. The code containing above line of import will not compile. It will throw an error saying,can... Read more »
It is empty. But not null. Read more »
A final class can’t be extended ie., final class may not be subclassed. A final method can’t be overridden when its class is inherited. You can’t... Read more »
Abstract class must be extended/subclassed (to be useful). It serves as a template. A class that is abstract may not be instantiated (ie, you may not call its constructor),... Read more »
public : Public class is visible in other packages, field is visible everywhere (class must be public too) private : Private variables or methods may be used only... Read more »
AWT are heavy-weight componenets. Swings are light-weight components. Hence swing works faster than AWT. Read more »
The thread could be implemented by using runnable interface or by inheriting from the Thread class. The former is more advantageous, ’cause when you are going... Read more »
An abstract class can have instance methods that implement a default behavior. An Interface can only declare constants and instance methods, but cannot implement... Read more »
1. What’s the .NET datatype that allows the retrieval of data by a unique key? Ans. HashTable. 2. What’s class SortedList underneath? Ans. A... Read more »
When you write a multilingual or multi-cultural application in .NET, and want to distribute the core application separately from the localized modules, the localized... Read more »
Assembly versioning allows the application to specify not only the library it needs to run (which was available under Win32), but also the version of the assembly. Read more »
It’s a delegate that points to and eventually fires off several methods. Read more »