What is the result of the following code block? Integer  x = - ProProfs Discuss
Topics
Products
Follow Us:

What is the result of the following code block? Integer  x = 1;Integer Y = 0;While(x < 10){Y++;} 

This question is part of Salesforce Platform Developer 1
Asked by Cmduquer, Last updated: Jan 08, 2020

+ Answer
Request

3 Answers

aajam

Aajam

Answered Nov 01, 2018

@Nagaraj: It will be in an infinate loop since 'x' is not being increased, so an error will be thrown

 

nagaraj

Nagaraj

Answered Oct 08, 2018

Can anyone explain this? I'm bit confused

 

cmduquer

Cmduquer

Answered Sep 25, 2018

An error occurs

####
 

Search for Google images
Select a recommended image
Upload from your computer
Search for Google images
Select a recommended image
Upload from your computer
Search for Google images
Select a recommended image
Upload from your computer

Email Sent
We have sent an email to your address "" with instructions to reset your password.