Answer Posted / mantu
An Exception is an abnormal condition or situation that arises
in a code at run time means they are are run time error.
An exception can be caught handled manually but an error can not be caught or handled.
| Is This Answer Correct ? | 8 Yes | 1 No |
Post New Answer View All Answers
What is strings in java?
public class Test { public static void main(String[] args) { int countA = 0; int countB = 0; int countC = 0; int countD = 0; int countE = 0; int countF = 0; int countG = 0; int countH = 0; int countI = 0; int countJ = 0; int countK = 0; int countL = 0; int countM = 0; int countN = 0; int countO = 0; int countP = 0; int countQ = 0; int countR = 0; int countS = 0; int countT = 0; int countU = 0; int countV = 0; int countW = 0; int countX = 0; int countY = 0; int countZ = 0; } } Can anybody tell me any alternate solution(like loop or something) to automate this initialization process. Ex:- for(char chr='A';chr<='Z'; chr++) { (int) String "count"+chr = 0; }
What access modifiers can be used for variables?
Is string is a keyword in java?
Can you call a method in a method?
Which is the best approach for creating thread ?
How to create a base64 decoder in java8?
What is a lambda expression ? What's its use ?
What are the two types of streams offered by java 8?
Is final static java?
Is hashset ordered?
What is arrays sort in java?
List down the methods and interfaces of collection class in java.
How static variable work in java?
Why are the objects immutable in java?