Question: What will be the output for the below code? public class Sample { public static void main ( String a [ ] )
What will be the output for the below code?
public class Sample
public static void mainString a int ival;
System.out.printlnival value: ival;
Compile time Error
Nothing will be printed
Runtime Error
Prints ival value :
Submit
c WIPRO LTD WWWWIPRO.COM CONFIDENTIAL
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
