Join Regular Classroom : Visit ClassroomTech

codewindow.in

Capgemini Recruitment Process | Codewindow

Pseudo Code Round 30 Questions 30 Minutes Elimination Round Check Communication Test 30 Questions 30 Minutes Elimination Round Check Gaming Rounds For Every Round 5-8 Minutes Elimination Round Check Behavioral Competency No Elimination Check Technical Interview Elimination Round Check HR Interview Elimination Round Check About Capgemini Capgemini SE is a French multinational corporation that provides consulting, […]

Capgemini Recruitment Process | Codewindow Read More »

Superclass variable can reference a subclass variable in java

A reference variable of a superclass can be assigned a reference to any subclass derived from that superclass. You will find this aspect of inheritance quite useful in a variety of situations. For example, consider the following: Here, weightbox is a reference to BoxWeight objects, and plainbox is a reference to Box objects. Since BoxWeight

Superclass variable can reference a subclass variable in java Read More »

Inheritance in java

Inheritance is the process by which objects of one class can link and share some common properties of objects from another class. Use of inheritance : For Method Overriding (so runtime polymorphism can be achieved). For Code Reusability. Syntax of inheritance : The extends keyword indicates that you are making a new class that derives

Inheritance in java Read More »

Buffered Reader in java

Java BufferedReader class is used to read the text from a character-based input stream. It can be used to read data line by line by readLine() method. It makes the performance fast. It inherits Reader class. Java BufferedReader class declaration Let’s see the declaration for Java.io.BufferedReader class: public class BufferedReader extends Reader Output Latest Posts

Buffered Reader in java Read More »

Switch Case in C

It is a statement in C that allows to execute a specific code block. It is one of the many alternative ways. Note: switch case follows a top-down approach. Syntax : Example : 1 Explanation:For value 1, the expression is matched with all the case values, the case value which matches with the expression i.e.

Switch Case in C Read More »

Remove first two elements in Python List

There are many ways of doing it-1. pop method- list.pop()2. remove method- list.remove(list[index])3. del function- del list[index]4. slicing- list[2:] Here is an example for you- Output: Explanation:Here,pop(0) pops the first element from the list. The for loop executes the block 2 times which means the first element is popped every time the list gets updated.remove(b[0])

Remove first two elements in Python List Read More »

Remove the first element and add it to last in Python List

There are many ways of doing it, here are a few ways-1. pop method – list.pop()2. slicing – list[:1],list[1:] Here is an example for you- Output: Explanation:Here,pop(0) pops the first element from the list. Then the popped element is added to the last using append() method.d[:1] slices the array/list till index 0 which means the

Remove the first element and add it to last in Python List Read More »