Total Questions:-281 Goto Page:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57
R4R --->Java-->Core Java -->Core Java Interview Objective Questions And Answers
Core Java Interview Questions And Answers
Page 1
Question :What is difference between jdk1.4 and jdk1.5?
Give Your Answer
Answer:Following is added into jdk1.5 .which was not into jdk1.5:
Java Language Features
Generics
Enhanced for Loop
Autoboxing/Unboxing
Typesafe Enums
Varargs
Static Import
Metadata (Annotations)
Virtual Machine
Class Data Sharing
Garbage Collector Ergonomics
Server-Class Machine Detection
Thread Priority Changes
Fatal Error Handling
High-Precision Timing Support
So many other new features has been added.
User Name:Rajesh Kumar Date:19.01.10
Answer:jdk 1.5 have been added new features which was not into jdk1.4
Java Language Features
Generics
Enhanced for Loop
Autoboxing/Unboxing
Typesafe Enums
Varargs
Static Import
Metadata (Annotations)
Virtual Machine
Class Data Sharing
Garbage Collector Ergonomics
Server-Class Machine Detection
Thread Priority Changes
Fatal Error Handling
High-Precision Timing Support
User Name:Rajesh Kumar Date:19.01.10
Question :Can a java source file hava more than one public classes?
Give Your Answer
Answer:yes
User Name:arti Date:16.01.09
Answer:No! A java source file can hava only one public class and the name of that source file must be the same as of the public class name.
User Name:Jalees Date:16.01.09
Question :What is output of following code
package r4r.co.in.core.java;
public class HelloWorld {
static int i = 0;
public static void main(String args[]) {
System.out.println(i);
display();
HelloWorld h=new HelloWorld();
h.display();
}
void display(){
int i=0;
i=90;
System.out.println(i);
}
}
Give Your Answer
Answer:The program will give an error : a non-static method display() can not be referenced from a static context.
User Name:Jalees Date:16.01.09
Question :What is output of following code
package r4r.co.in.core.java;
public class HelloWorld {
static int i = 0;
public static void main(String args[]) {
System.out.println(i);
HelloWorld h=new HelloWorld();
h.display();
}
void display(){
int i=0;
i=90;
System.out.println(i);
}
}
Give Your Answer
Answer:Output of the program :
0
90
User Name:Jalees Date:16.01.09
Question :What is output of following code
package r4r.co.in.core.java;
public class HelloWorld {
static int i = 0;
public static void main(String args[]) {
System.out.println(i);
display();
HelloWorld h=new HelloWorld();
h.display();
}
static void display(){
int i=0;
i=90;
System.out.println(i);
}
}
Give Your Answer
Answer:Output of the program :
0
90
90
User Name:Jalees Date:16.01.09
Answer:0
90
90
User Name:vasanth Date:09.02.09
Go:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57
Core Java Objective Questions And Answers
Core Java Objective Questions And Answers
Core Java Subjective Questions And Answers
Core Java Subjective Questions And Answers
R4R,Core Java Objective, Core Java Subjective, Core Java Interview Questions And Answers,Core Java,Core Java Interview,Core Java Questions ,Core Java Answers
R4R --->Java-->Core Java -->Core Java Interview Objective Questions And Answers
Contact Us
|