javascript1

Friday, 7 August 2015

Java Interview Questiojn for interview

Q1 Differentiate final , finalize and finally keyword   in java? 

Or
Why we use finalize mehod in java

Just what is finalize() technique?

Just what is the difference between final keyword , finally keyword and finalize in java ?

why we declare class as a final 

Answer :
              1.     final       is used for declaring constant 
2.     Finally   handles exception in java when a program is executed 
3.     Finalize  job of finalize is automatic garbage collection

Important Tip : Variables specified in an interface by default are  final.we can not extend a final class 





Q2 Exactly what is the Java API why java api used ?

Answer :The Java API is a huge collection of ready-made software components that provide lot of functionality  such as email functionality through api.


Q3 What is the GregorianCalendar course in java ?

Answer : The GregorianCalendar offers assistance for traditional Western schedules.

Q4  what is the ResourceBundle class in java and  why we use ResourceBundle class in java  ? 

Answer : The ResourceBundle course is utilized to store locale-specific sources that can be packed by a program to customize the program's look to the area where it is being run.


Q5  Why in java does not have any   global variables ?

Answer : Global variables are globally available. Java does not sustain around the world available variables because of adhering to factors:

Global  variables crates collisions  in namespace.

Q6  The best ways to change String to Number in java program?

Answer :  in java The valueOf() function of Integer course is is made use of to change strand to Number. Below is the code instance:.
String numString="1000 รข?³;.
int id=Integer. valueOf(numString). intValue();.

Q7 Exactly what is the SimpleTimeZone class?

The SimpleTimeZone class gives support for a Gregorian calendar.

Exactly what is the difference between a while statement as well as a do declaration?






Demonstrate fadeToggle() with different speed parameters.

Demonstrate fadeToggle() with different speed parameters.

bhjbhjb
dkjsbkjsbkj

No comments:

Post a Comment