public class Test { public static void main(String ar[]) { Integer a = 10; Integer b =10; Integer c = 145; Integer d = 145; System.out.println(a==b); System.out.println(c==d); } }
7 13188solve this is my problem byte a=40,byte b=50 both add value is 90 this is with in range of byte... byte range is -128to 127.... why this pgm gives error like type mismatch.... package javapgms; public class byte1 { public static void main(String args[]) { byte a=40,b=50; byte c=a+b; System.out.println(c); } } note : dont use int k... a,b,c are in byte range... mind it..
2 6289Why Static variable required in java?For ex,class A { static int a; int b; } Why static is required?
5 8894In collection sorting comparable and comparator interface will be used..but why this two interfaces required..two will work same purpose so why there are two interfaces instead of one?when to use comparator and when to use comparable?
1 4903
List the features of java programming language.
Explain about the dynamic behavior of core java?
What variables are stored in stack?
Why do I need to declare the type of a variable in java?
Explain the difference between arraylist and linkedlist in java?
What is bufferedreader in java?
What is the base class in java from which all classes are derived?
Which variables are stored in stack?
What is the latest java version?
What are the different types of data structures in java?
What are accessor methods in java?
What is arraylist e?
What is the functionality of the stub?
Why we do exception handling in java and how many types of exceptions are there?
Can we clone singleton object in java?