Implement Java Core Features In Node Js

Posted By : Shashwat Gupta | 19-Sep-2017

 

Is It Possible to implement Java Core Features In Node Js ??

 

Yes , Is it possible to implement java core features in Node Js by using 'java4node' npm module.This Library is awesome that provide very easy methods to implement java features in node js in javascript manner

 

 

"java4node" : java runner in javascript

 

Features :

  1. Multithreading
  2. System.out.println(" ..any logs ");

 

Upcoming Features :

 

  1. Java Classes
  2. Java Function overloading

 

Usage :

just fire the commend on terminal :


npm install java4node

 

 

Methods :


.multiThreading(tasks , callbacks)

This Function is use for perform multi threading in java script manner


.System.out.println();

This Functions is use for print the output in the terminal or console window

 

var java = require('java4node')

java.multiThreading({
one: function(callback) {
java.System.out.println("function one is running");
callback()
},
two: function(callback) {
java.System.out.println("function two is running");
callback()
},
three: function(callback) {
java.System.out.println("function three is running");
callback()
}
}, function(err, results) {
callback(err, results)
});

 

 

Link: https://www.npmjs.com/package/java4node

This is very easy module for implement java features in nodejs . Thanks for reading blog
see you on next blog

About Author

Author Image
Shashwat Gupta

Shashwat is a bright Mean Stack Developer . He has good experience in development of complex UI's of web application and hybrid mobile applications.

Request for Proposal

Name is required

Comment is required

Sending message..