Programming Step by Step

Java, Python, Spring MVC, SpringBoot, SQL, MySQL, MariaDB, PostgreSQL and Back-end theory and code examples.

Pages

▼
Showing posts with label java coding exercise. Show all posts
Showing posts with label java coding exercise. Show all posts
Sunday, 2 August 2015

What is the output of following program?

›
 public class B{            B b= new B();           public int show(){           return (true ? null : 0);      }           public ...
Thursday, 30 July 2015

Difference between == and .equals()

›
They both differ very much in their significance. equals() method is present in the java.lang.Object class and it is expected to check fo...
Saturday, 30 May 2015

Java Declaring Objects

›
You can declare object of class Box as follows: Box box; Normally we say that box is an object of type Box. This is correct in C++ but ...

Java Access/Visibility Modifiers

›
Access/visibility modifiers control access to a class, interface, data member or method. There are four levels of visibility in Java: p...

Java defining a class

›
A Java class represents a user-defined data type. It acts like a template using which we can create multiple objects. The objects are like ...
›
Home
View web version
Powered by Blogger.