Wishing you joy and prosperity this Diwali
Programming Basics
you can share your knowledge or can get help in programming difficulties
Interface A
{
Public void sum (int x, int y)
{
System.out.println (x+y);
}
}
Is this code is valid or not
A) yes
B) no
From JDK 8 onwards we can also make Interface excutable means interface can contain main function and functions can be defined in interface.
in java All static and non static function are loaded in ?
1. Class Information area
2. Memory Area
3.Stack
4 Heap.
Is there any way to find out the size of an object in JAVA if yes then how?
java contains block ?
1. static block
2. init block
3 local block
4 all of the above
Static block in java executed only once at?
1. class loading time
2. Runtime.
Dear Students and All please note down these company details these are fake company who takes money to appoint you and after 3 months they will fire you. Share as much as you can.
1. Netrix Tec / Matrix
B-52 , B-54 , IIIrd floor
Sect-64 Noida
ph.. 0120-4282008
2. PI tech.
3. KeptBug
sect-62 Noida
Pure object-Oriented language ?
1. C++
2. Java
3. Small Talk
4 None of the above.
Is switch statement is able to get String as expression ? If yes where it ispossible?
1. C++
2. Java 7
3 Java 8
4 none of these
An array can be declared in two ways in java
Int a1[ ]=new int [3];
int [ ]a2= new int [3];
What is the difference between these two declrations.
Happy New year 2017 Enjoy the day
Click here to claim your Sponsored Listing.
Location
Contact the school
Telephone
Address
Hisar
125001