Posts

Showing posts from May, 2023

Questions asked to me in Barclays technical round.

1. oops concept detailed with real life examples. 2. Inheritance complete and use of super keyword. 3. what will be the output of the below code. class a{ a(){ System.out.println("Hello a"); } } class b extends a{ b(){ System.out.println("Hello b"); } } class c{ public static void main(String args[]) { a obj1 = new a(); b obj2 = new b(); } }  O/P :-   Hello a   Hello a   Hello b Reason : There is a automatic call made to the super constructor. 4. Will the below code compile? class a{ a(int i){ System.out.println("Hello a"); } } class b extends a{ b(){ super(6); System.out.println("Hello b"); } } class c{ public static void main(String args[]) { a obj1 = new a(); b obj2 = new b(); } } Answer : NO  Reason : No matching constructor found. 5. Will this code work? class a{ a(){ System.out.println("Hello a"); } } class b extends a{ b(){ System.out.println("Hello b"); } } class...

Websites you will love as a Developer

This is a guide to develop a easy and effective theme in android.   Material Theme for Android   sfsdfs Material Palette helps in trying out different color and theme options with color codes to copy from. Material Palette css gradient to create gradients in css. CSS Gradient color picker tool Color Picker tool Need to write Assignments this tool will be helpful Text to Handwriting erd tool ERD tool free

Let's Increase Typing Speed.

Okay, First let’s talk about my typing speed. I can type at 70 WPM without any mistake. My goal is to achieve 80 WPM with 100% accuracy, my top speed on nitrotype is 84 WPM. As you can see I am pretty close to achieve my goal. I started practicing last year, and got so busy in work and study that I stopped practicing completely. From past week I started typing again and hoping to achieve my goal within next 2 months. Let’s see how can you achieve your goal of typing. Practice! Practice! Practice!. Yes, only practice will help to increase your typing speed. Where to practice? There are many platforms to help you practice your typing. two of my favorites are  monkeytype  and  nitrotype . I mostly type on NitroType because it adds competitive feeling to typing. On MonkeyType you can also compete with yourself. The websites records your previous typing data and lets you to compete to yourself. Consistency Just practicing wont increase your typing speed. you have to do it regu...

Creating a Expense Tracker in React.js - Part 1

Create a new React Project with name Expense Tracker  After we have created our project. we see multiple files are created in the project folder.. The first file that is executed after you run the application using npm start is index.js. which takes all the rendering data from the App.js file. So, to make any changes in the output we need to change the App.js file. we will create a component to display the expense.

Creating a React.js project

Let's start with creating a small project in React.js To create a React application node must be installed on the system. create-react-app will be used to create a react app. syntax: npx create-react-app <app-name> ex: npx create-react-app test this command will take sometime to finish execution. after its done executing, you will see a test folder which will contain all the project files. to run the application navigate to test folder. using  cd test and execute the below command. npm start this will open your React app in new tab. if that does not happen visit localhost:3000 on your browser.