Why is flag used in java?



Why is flag used in java?..

Answer / Abhinaw Kumar Rai

In Java, flags are often used to represent a condition or status. They are usually boolean variables that can be set true or false, and can be checked to determine the current state.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Core Java Interview Questions

What is meant by overloading?

1 Answers  


What is the null?

1 Answers  


Difference between a class and an object?

1 Answers  


What is the use of java?

1 Answers  


How does sublist works in java?

1 Answers  


What are selection structures?

1 Answers  


How do you use parseint in java?

1 Answers  


we r taking <load-on-startup>0</load-on-startup> <load-on-startup>1</load-on-startup> in deployment descripter for loading servlets like serv1 N serv2? so 'll it take serv1 or serv2

2 Answers   CSC,


What are memory tables?

1 Answers   Aspiring Minds,


Does constructor be static?

1 Answers  


What if I write static public void instead of public static void in java?

1 Answers   Winsol Solutions,


Can a for statement loop indefinitely?

3 Answers  


Categories