Why do I need to declare the type of a variable in java?


No Answer is Posted For this Question
Be the First to Post Answer

Post New Answer

More Core Java Interview Questions

Can we create our own wrapper class in java?

0 Answers  


what are the rules to use try catch finally?

1 Answers   Satyam, UJ,


What differences exist between iterator and listiterator?

0 Answers  


v-model life cycle

0 Answers   Virtusa,


84. try { 85. ResourceConnection con = resourceFactory.getConnection(); 86. Results r = con.query(”GET INFO FROM CUSTOMER”); 87. info = r.getData(); 88. con.close(); 89. } catch (ResourceException re) { 90. errorLog.write(re.getMessage()); 91. } 92. return info; Which is true if a ResourceException is thrown on line 86? 1 Line 92 will not execute. 2 The connection will not be retrieved in line 85. 3 The resource connection will not be closed on line 88. 4 The enclosing method will throw an exception to its caller.

1 Answers  


Explain serialization and deserialization in java?

0 Answers  


What is module in project?

0 Answers  


What is the difference between access specifiers and access modifiers in java? 16

0 Answers  


What releases of Java technology are currently available? What do they contain?

1 Answers  


what is polymorphism with example?types of polymorphism?

15 Answers   HP, Sigma Solve,


What is the difference between error and an exception?

0 Answers  


What is java abstraction with example?

0 Answers  


Categories