Can we compile and execute without class? yes jdk 1.5 : enum; jdk 1.8 : interface; Code: Using Enum enum Test { ; p...
Read More
52 Program for overloading and print value using function in Java
Code: class Overloading2 { int x , y , z ; Overloading2(int a ) { x = a; } Overloading2(int a , int b) { x = a; ...
Read More
Subscribe to:
Posts (Atom)