04/05/2020
Java By PC YouTube channel is live now! First video uploaded...checkout and gimme the feedback!
Core Java 01 - Encapsulation
We will start with OOPS concept, taking Encapsulation first in this tutorial! (Don't worry about practical implementation for now, we will take it in further...
21/01/2020
Online JAVA classes by PC! Say no to cramming, ask us a reason!
Detailed and clear knowledge of core Java is guaranteed.
Attend demo class, then decide!!
Contact/WhatsApp me - 9996715566/9130096261
09/06/2018
'Java By PC' is back!
Anyone who wants to learn Java, can contact me and trust me you will not regret your decision of learning it with me... Give it a try.. 2 free trial classes! Classes at Wakad, Pune... Online classes also available :)
19/08/2017
Interfaces can have static and default methods now! And also enjoy the new useful concept, introduced in JAVA 8 - "LAMBDAS" ...I personally feel bad reading it because it's not object oriented...but truly useful!! Enjoy...
media3.giphy.com
08/06/2016
Can you initialize an instance data member before the run of constructor while creating an object? :O Post your answers below in the comment section...
24/06/2014
Why main() function is static?
Comment!!
21/06/2014
Are constructors used to create an object?
Comment!!
19/06/2014
Why constructors can't return any value although they are also just a function?
Comment your answers!!
19/06/2014
Difference between malloc and calloc?
There are two differences between these functions:-
-->First, malloc() takes a single argument (the amount of memory to allocate in bytes), while calloc() needs two arguments (the number of variables to allocate in memory, and the size in bytes of a single variable).
-->Secondly, malloc() does not initialize the memory allocated, while calloc() initializes all bytes of the allocated memory block to zero.
Function Description
malloc -- allocates the specified number of bytes
realloc -- increases or decreases the size of the specified block of memory. Reallocates it if needed
calloc -- allocates the specified number of bytes and initializes them to zero
free --- releases the specified block of memory back to the system
19/06/2014
Is object just a buffer in a memory area?
Comment your answers!!
19/06/2014
What is Encapsulation?
An analogy can be made here with the notion of a CAPSULE, which not only encloses its contents, but also protects it from the exterior environment!!
-->To group together properties and behaviors of a class type...
-->To reduce the collisions of the same named variables...
-->Reduces system complexity...
-->Security enhancement due to restricted access to outside class...
-->Increases robustness...