Strings & String class | Java Tutorial for Beginners 18 | TalentSprint

preview_player
Показать описание
Watch our "Java Tutorial for Beginners " series and become a Java Professional. In this series, we will be explaining Java from the very basic step and all other JAVA concepts in a very easy to understand manner.

#javatutorialforbeginners #javatutorials #javaprogramming #javaprogrammingtutorial #javabasicsforbeginners

------------------------------------------------------------------------------------------------------------------------------------

Jumpstart your career with TalentSprint!

1.Take Subject wise Practice tests and All-India Mock Tests with Benchmarking, Feedback and Recommendations by Tia (A bot that has helped over 10,500 Students crack competitive exams).
2.Thrice a Week Problem-Solving Classes by Expert Trainer.
3.Trainer-Student Forum Access that provides a Highly interactive forum for instant doubt 4.Clearance & discussions with peers.
5.1 working Day Trainer Team Turnaround for Forum Queries.
-------------------------------------------------------------------------------------------------------------------------------------
Choose Your Preparation Method.
Online - Join and get a dashboard full of video lessons, ebooks, LIVE classes & other preparation material.
Pendrive - Delivered at your doorstep with a COD Option. A pocket classroom that helps you prepare on-the-go with no internet.
XP Centres - A classroom with a difference. This enhances your preparation and helps you explore more advanced forms.
-----------------------------------------------------------------------------------------------------------------------------------------

Fast forward your career with TalentSprint!

1.Prepare with India’s Leading Trainers
2.Study on the go with 24/7 Digital Learning
3.Practice with All India Tests
4.Improve with Personalized feedback with TIA
5.Get 1000+ IT recruitment drives per Year.
6.Win with 5 times higher success rate.

Рекомендации по теме
Комментарии
Автор

Dear Respected Mam,

Please clear my doubts on Increment/Decrement Operators in JAVA...Mam, Please Observed This code Below..

class Test
{
public static void main(String[] args)
{
int a = 10 ; // line 1
a = ++a ; // line 2
a = a++ ; // line 3

System.out.println(a); // line 4
}
}

Output ::: ---> 11
But, why I am getting 11... instead of

And Mam, Please observed the following variations also:::

Mam, if I am replace //line 3 with this following Expressions so it shows Unexpected Output Mam..

1) a = a++ + a++ ; replace Line 3 with This Expression
Output is :::--> 23 // But, why I am getting 23... instead of

2) a = a++ + a++ + a++ ; replace Line 3 with This Expression
Output is :::--> 36 // I think it is true but, , see below Expression

3) a = a++ + a++ + a++ + a++ ; replace Line 3 with This Expression
Output is :::--> 50 // But, why I am getting 50...instead of 48

4) a = a++ + a++ + a++ + a++ + a++; replace Line 3 with This Expression
Output is :::--> 65 // But, why I am getting 65... instead of 60


Mam, Please Please Please clear my doubts as early as am very tensed about it ....

akashjadhav