new self: self points to the class in which it is written. self refers to the same class in which the new keyword is actually written. New static static, in…
PROBLEM : The question is simple. we have a for each loop in our code: In this loop, we want to react differently when we are in first or last…
Java Map Interface A map contains values on the basis of key i.e. key and value pair. Each key and value pair is known as an entry. Map contains only…
PROBLEM: Using echo “20+5” literally produces the text “20+5”. What command you use to get the numeric sum, 25 in this case? Also, what’s the easiest way to do it…
/opt: /opt is for “the installation of add-on application software packages”. /usr/local : /usr/local is “for use by the system administrator when installing software locally”. [ad type=”banner”] difference between /opt…
Private method is a which can be invoked by code in the same class. It is not inherited by subclasses. A field is a class, interface, or enum with an…
Java provides a set of operators to manipulate variables. We can divide all the Java operators into the following groups: Arithmetic Operators Relational Operators Bitwise Operators Logical Operators Assignment Operators…
The Java.io.InputStream class is the superclass of all classes representing an input stream of bytes. Applications that need to define a subclass of InputStream must always provide a method that…
PROBLEM : Is it possible to include one CSS file in another? SOLUTION 1 Yes,its possible to include one css file in another.The @import rule must precede all other rules…
A char[] is an arrayof primitive numbers of type char. All it provides is a length attribute, and a way to get and set a charat a given index. A Stringis an object, of type java.lang.String,…