While working with java or python many of the times we may come across error of “command not found” while executing command in cmd, even after proper installation of the software. For python while trying to install a package through command prompt (cmd) following error may be faced: This error can be recovered by adding the path of python to …
How to configure portable Java development kit (JDK)
What is JDK? JDK referred as Java Development Kit is used to develop various types of application in JAVA. Portable JDK? Portable means the code which can run anywhere you want. The portable JDK is also similar to that as we use JDK without actually installing it on our system. Check out the following video in Hindi language which explains …
Java Basics – 1
Q1. Why Java classes does not support multiple inheritance? Ans-: In java child class can not have two or more parent classes. This makes this language simple, easy to use and less complex. However, a class can implement multiple interfaces with the condition that class must override the behavior of interfaces according to its context. James gosling provide this option …
Packages in Java
In Java, packages are the collection of similar type of classes, interfaces, enumeration and annotation types. These are organized in a well defined manner for ease of use. Packages are similar to header files in C/C++. The main objectives of having a package type structure in Java are as follows: Code reuse Organize classes and interface and prevent from name …