What are conditionals and its types?



What are conditionals and its types?..

Answer / Shailender Kumar

Conditionals are statements that allow your program to make decisions based on certain conditions. In Java, there are two main types of conditionals: if statements and switch statements.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Core Java Interview Questions

Why string is immutable with example?

1 Answers  


What modifiers are allowed for methods in an interface?

1 Answers  


How to invoke external process in java.

1 Answers  


What is anagram of a string?

1 Answers  


What are the limitations for static method?

3 Answers   Greenwood,


Can list have duplicates in java?

1 Answers  


Explain about automatic type conversion in java?

1 Answers  


Why we cannot override static method?

1 Answers  


What are the types of methods in java?

1 Answers  


What is difference between static method and static variable?

7 Answers  


What are the advantages of autoboxing?

1 Answers  


Why is Java a platform independent language?

1 Answers  


Categories