Is boolean a data type in java?


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

Post New Answer

More Core Java Interview Questions

What is the difference between keyword and identifier?

0 Answers  


List out benefits of object oriented programming language?

0 Answers  


What is the difference between Checked and Unchecked exception? Give some examples

2 Answers   Ness Technologies,


Distinguish between a predicate and a function?

0 Answers  


Difference between the String and StringBuffer classes?

3 Answers  


What is a key in java?

0 Answers  


What happens when you invoke a thread’s interrupt method while it is sleeping or waiting?

0 Answers  


4.1 Supply contracts (in the form of comments specifying pre- and post conditions) for the enqueue() method of the LinkedQueue class given in the Appendix. (2) 4.2 Let Thing be a class which is capable of cloning objects, and consider the code fragment: Thing thing1 = new Thing(); //(1) Thing thing2 = thing1; //(2) Thing thing3 = (Thing) thing1.clone(); //(3) Explain how the objects thing2 and thing3 differ from each other after execution of the statements. (

0 Answers  


use of wrapper classes?

3 Answers   IBM,


interface X{ void m1(); void m2(); } class Child2 extends Object implements X { public void m1(){ System.out.println("Child2 M1"); } public void m2(){ System.out.println("Child2 M2"); } } public class ParentChildInfterfaceDemo { public static void main(String[] args){ X x = new Child2(); X x1 = new Child2(); x.m1(); x.m2(); x.equals(x1); } } Will the above code work? If yes? Can you please explain why the code x.equals(x1) will work as the equals method is called on interface reference vaiable?

2 Answers  


What are meta-annotations?

0 Answers   Cyient,


What is a void method java?

0 Answers  


Categories