Search This Blog

What is Java? | Open Ended Interview Question
Power of open ended questions - "What is Java?"


When Interviewer ask open ended questions to the candidates in any interview, he come to know about the depth of his/her (Interviewee) thinking. As a human being we want to show off what we have/we know. Open ended questions give such opportunity to the candidate.
 
Let's take an example of a simple open ended question - 
"What is Java?"

You will hear different answers from the candidates with different experience and exposure. 
Here are some of the answers:
 
Fresh out of college -
Java is a programming language. It is object oriented.
 
The candidates with few years of experience -
Java is an object oriented programming language. It is compiled and interpreted language. It is also platform independent.
 
The candidates at Technical Lead level -
Java is a platform which includes platform independent programming language. It also provides Enterprise Edition with containers to write your server side code. You can write code once and run it anywhere, you don't even have to compile it again. It provides automated garbage collection so you don't have to worry about allocating and releasing the memory. It is secure.
 
The architects and above -
Java is fantastic programming language and a platform. You can write programs for devices, server side applications and also desktop application. Java is platform independent language. It achieves the platform independence by having intermediate Java Byte Code. The Java Byte Code has a set of instructions. This byte code can run on Java Virtual machines. Java Virtual Machines are platform dependent.
Java is also secure language, it achieves security by identifying the source of the Byte Code. The Class Loaders and Security Managers takes care of providing appropriate privileges to the running code based on its source and purpose.
There are over 80 programming languages which can run on JVM. There are rich sets of libraries like Spring, Quartz, Lombok which makes your day-to-day programming a breeze. It has also rich documentation and a good community support.
 
So next time you interview any candidate, consider asking open ended questions. 
Also be careful while answering the open ended questions when you appear for the interview ;)

Tip: Prepare yourself with Open ended questions.(for both Interviewee and Interviewer)

Follow on Instagram: @Harshitbnsl
Subscribe on YouTube: Harshit Bansal
Calculator Android Application | #Android_Studio #Project

Calculator Android Application | #Android_Studio #Project

A calculator is a device that performs arithmetic operations on numbers.

This App can do addition, subtraction, multiplication, and division of whole number values as well as decimal values.

This application is developed using Android Studio.

This Application is Designed and Developed by Harshit Bansal.

P.S.: Do comment your views and suggestions in comment section below.












How to Create an application of Calculator ?

Steps to Create an application of Calculator are:

Firstly,
we have to design the UI of our calculator application, 

▪ Add different buttons to perform their respective tasks,  
 
▪ EditText box to display the input given by the user and to show the results.  
 
▪ TextView, EditText and Buttons can be added from the palette by drag and drop, or we can simply code it into our xml file.

Here, 
1. We have added a TextView for displaying the title/logo. 
 
2. Two EditText are used to display the input given by the user and to show the results after calculation. 
 
3. Different Buttons (18 Buttons) are added to perform different tasks: 
 
▪ 10 buttons for numeric >> 0 – 9 
▪ 1 button for decimal >> dot (.) 
▪ 4 buttons for performing operations >> Add, Subtract, Multiply, and Division
▪ 1 button for the result >> equal to (=) 
▪ 2 buttons for clearing the EditText >> “Clear”- for correct and “AC” – for all clear 


Now,

we have to add functionality on all the buttons which are created in activity_main.xml. 

So, add “setOnClickListener” on all the buttons and define their respective functions inside “onClick” method.

 

Featured post

Calculator Android Application | #Android_Studio #Project

Calculator Android Application | #Android_Studio #Project A calculator is a device that performs arithmetic operations on numbers. This App ...

Popular Posts

Stay Tuned

Connect on Facebook

Subscribe on YouTube

About this Site

I have come up with this website to share what I do and what I am. Therefore, I invite you to go through this website to understand my work and also services that I provide.