- We have provided some java interview programming questions for freshers and experienced candidates.
 - So please try to answer these java interview questions and practice.
 - If you have any doubt go through the given explanation link you can get the answer for that.
 - Still if you need any clarifications feel free to contact us. Skype/Gmail: instanceofjava
 
Program #1: what will happen if we try to interchange modifiers of main method
- package interviewprograms.instanceofjava;
 - public class InterviewProgram {
 - /**
 - * @java interview programming questions and answers for freshers and experienced
 - */
 - static public void main(String[] args) {
 - System.out.println("Hello world");
 - }
 - }
 
Program #2:Do you know about static in java . How static works?
Program #3:Java Interview question on try catch block in java
- package interviewprograms.instanceofjava;
 - public class InterviewProgram {
 - /**
 - * @java interview programming questions and answers for freshers and experienced
 - */
 - public static void main(String[] args) {
 - try {
 - System.out.println("I am try block");
 - } finally {
 - System.out.println("I am finally block"); }
 - }
 - }
 
Program #4:Java Interview question on what happens when we print object
- package interviewprograms.instanceofjava;
 - public class InterviewProgram {
 - /**
 - * @java interview programming questions and answers for freshers and experienced
 - */
 - public static void main(String[] args) {
 - try {
 - System.out.println("I am try block");
 - } finally {
 - System.out.println("I am finally block"); }
 - }
 - }
 

No comments