RUVIDEO
Поделитесь видео 🙏

Java interview questions| Data Types|Variables |Operators| basics off java|Coding for beginners

#javainterview #codingforbeginners #javatutorial

Q.1) What is declaration and definition of a variable? Can both be done together
Yes - int a; // Declaration
a = 3; // Defination
int a =3; // Declaration + Defination

Q.2) Can variable name start with a digit? - No
Rules
-: Variable name should start with letters, ‘_’ or ‘$’
-: After the first letter it can contain digits
-; No spaces and other special characters
-: No keywords as variable names

Conventions
-: Camel case convention should be followed e.g. greaterNumber
-: ‘_’ or ‘$’ are mostly discouraged
-: Length should be limited

Q.3) How many primitive data types are there in java? - 8
-: byte,short,int,long,float,double,boolean,characters

Q.4) Why are primitive data types are not included in objects?
-: Since the primitive data types consume less memory and can be accessed faster, they are not objects.
The equivalent Wrapper classes are also available in java like "Integer" "Short" etc.
-: Since they are widely used creating heap memory for them would be costly

Q.5) What is the purpose of data types?
-: defines the type of a variable and to assign memory to it accordingly.

Q.6) Difference between & and && on boolean condition?
-: && (logical AND) does not check the next condition if the first condition is false because the result is going to be ultimately false if one condition is false.
e.g. (a:1 && a:10)
-: & (bitwise AND ) checks all the conditions irrespective of the first condition
e.g. (a:1 & a:10)

Q.7) Difference between the signed right shift and unsigned right shift: ?
-: a signed right shift operator removes bits at the end and if the number is positive adds an equal number of 0’s before the number and if a number is negative adds an equal number of 1’s before the number.

-: unsigned right shift operator. It removes bits from the end of the number and it always adds an equal number of 0’s at the
beginning irrespective of the sign of the number.

Q.8) Difference between unary post and pre operators?
-: Unary Post increment and decrement operators assign the value to the variable first and then increment the value.
e.g. int b=4++; -: b=4;

-: Unary Pre increment or decrement operators first increment the value
int b=++4; b=5;

Q.9)What is difference between = & ==?

-: = is an assignment operator and assigns value to a variable
e.g. int a=3; -: stores value 3 in a

-: == is a logical operator and checks if two values are equal if values are equal it returns true otherwise false
e.g a==3; - returns true

Q.10) Difference between automatic and manual typecasting?
-: When the target data type is larger than the source data type compiler directly converts source data type to target data type this is called automatic/widening typecasting.
e.g int i=3; double d= i; d=3.0;

-: When the target data type is smaller than the source data type we manually need to tell the compiler about the target data type. This is manual or narrow typecasting.
e.g. double d=3.0 int i =(int)d; -: i=3;


Unary Operators in Java | Postfix & Prefix Operators | Coding For Beginners | Code Bode - https://youtu.be/RblB8vKiJq4

Shift Operators In Java| Java Tutorials | Coding For Beginners | Code Bode - https://youtu.be/hzMw-T0UJCI

Relational Operators In Java | Java Tutorials | Coding For Beginners | Code Bode - https://youtu.be/m2wUpezFUMQ

Logical Operators In Java | Java Tutorials | Coding For Beginners | Code Bode - https://youtu.be/YwuV55uOmVw

Bitwise Operators In Java | Java Tutorials |Coding For Beginners | Code Bode - https://youtu.be/EzhM2lKpHhU

Ternary Operators In Java | Java Tutorials |Coding For Beginners | Code Bode - https://youtu.be/NQzIGGNU6vI

Assignment Operators In Java | Java Tutorials | Coding For Beginners | Code Bode - https://youtu.be/WhNpyw20jAg

Type Casting In Java | Manual Vs Automatic Type Casting | Java Tutorial | Code Bode - https://youtu.be/fTHos2b0WSY

Operators In Java | All Operators Summarized | Java Tutorials | Code Bode - https://youtu.be/gYrfzf9dEOs



Follow Us on Instagram : code.bode
For Enquiries Mail Us At: [email protected]

Что делает видео по-настоящему запоминающимся? Наверное, та самая атмосфера, которая заставляет забыть о времени. Когда вы заходите на RUVIDEO, чтобы посмотреть онлайн «Java interview questions| Data Types|Variables |Operators| basics off java|Coding for beginners», вы рассчитываете на нечто большее, чем просто загрузку плеера. И мы это понимаем. Контент такого уровня заслуживает того, чтобы его смотрели в HD 1080, без дрожания картинки и бесконечного буферизации.

Честно говоря, Rutube сегодня — это кладезь уникальных находок, которые часто теряются в общем шуме. Мы же вытаскиваем на поверхность самое интересное. Будь то динамичный экшн, глубокий разбор темы от любимого автора или просто уютное видео для настроения — всё это доступно здесь бесплатно и без лишних формальностей. Никаких «заполните анкету, чтобы продолжить». Только вы, ваш экран и качественный поток.

Если вас зацепило это видео, не забудьте взглянуть на похожие материалы в блоке справа. Мы откалибровали наши алгоритмы так, чтобы они подбирали контент не просто «по тегам», а по настроению и смыслу. Ведь в конечном итоге, онлайн-кинотеатр — это не склад файлов, а место, где каждый вечер можно найти свою историю. Приятного вам отдыха на RUVIDEO!

Видео взято из открытых источников Rutube. Если вы правообладатель, обратитесь к первоисточнику.