Himanshu Rajpurohit

Greenhorn
+ Follow
since Jun 14, 2018
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
11
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Himanshu Rajpurohit

I know java Core and J2ee now started working at a Startup and they put me in a java project to write services for application i don't know how  approach it im not even able to get the project i see its dependency and got to know its a spring boot project,Im even not getting how to start and approach it should first i learn spring then spring boot and learn everything i have there backend code of api . how to learn and work please suggest a path that take less time for me to get productive.Its a huge code and im not getting any thing. no one here to help me .Only Internet
5 years ago

Junilu Lacar wrote:Read the fine print on that page, below the code example:

Oracle wrote:because the variable initializer for i uses the class method peek to access the value of the variable j before j has been initialized by its variable initializer, at which point it still has its default value (ยง4.12.5).



but here peek dont know about j and its type and its declaration . if it know about its declaration than it shoud know that it have a value 1.not zero .

5 years ago
I was reading https://docs.oracle.com/javase/specs/jls/se7/html/jls-8.html#d5e10238
para--8.3.2.3. Restrictions on the use of Fields during Initialization
where i find this example
5 years ago
Output of 1) code is 0. (Z.i)
5 years ago
1) can you please explain the whole code how the compiler is running this code without error I'm not getting the sequence how its run.

2)
why we cant intialize a value after declaring it like this


but we can do something like this

5 years ago
Java 8 interface function ??help

      it should call raj(int b) overridden method of class b. but got an error written below.
       1. can we override a static method and static method of an interface? and please help me how to reply on comments below






error
/*
C:\Users\htc\Desktop\hardcore>javac test2.java
test2.java:27: error: illegal static interface method call
        v.raj(6);
             ^
 the receiver expression should be replaced with the type qualifier 'test2'
1 error

*/

5 years ago
why we need current pointer in linklist to traverse

<<<<<<<<<<<<<<(why cant i just use head to find tail of link list here>>>>>>> ??)>>>>>>>>>>>>>
like this......



please help learning  coding and Data Structure and algorithm...

5 years ago